Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
libhtml-parser-perl /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
hanchors
1.17
KB
-rwxr-xr-x
2023-01-31 03:12
hbody
729
B
-rwxr-xr-x
2023-01-31 03:12
hdisable
740
B
-rwxr-xr-x
2023-01-31 03:12
hdump
708
B
-rwxr-xr-x
2023-01-31 03:12
hform
2.44
KB
-rwxr-xr-x
2023-01-31 03:12
hlc
717
B
-rwxr-xr-x
2023-01-31 03:12
hrefsub
3
KB
-rwxr-xr-x
2023-01-31 03:12
hstrip
1.73
KB
-rwxr-xr-x
2023-01-31 03:12
htext
612
B
-rwxr-xr-x
2023-01-31 03:12
htextsub
936
B
-rwxr-xr-x
2023-01-31 03:12
htitle
461
B
-rwxr-xr-x
2023-01-31 03:12
Save
Rename
#!/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