__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/perl
use strict;
use warnings;
# This program will print out all <a href=".."> links in a
# document together with the text that goes with it.
#
# See also HTML::LinkExtor
use Encode;
use HTML::Parser;
my $p = HTML::Parser->new(
api_version => 3,
start_h => [\&a_start_handler, "self,tagname,attr"],
report_tags => [qw(a img)],
);
$p->parse_file(shift || die) || die $!;
sub a_start_handler {
my ($self, $tag, $attr) = @_;
return unless $tag eq "a";
return unless exists $attr->{href};
print "A $attr->{href}\n";
$self->handler(text => [], '@{dtext}');
$self->handler(start => \&img_handler);
$self->handler(end => \&a_end_handler, "self,tagname");
}
sub img_handler {
my ($self, $tag, $attr) = @_;
return unless $tag eq "img";
push(@{$self->handler("text")}, $attr->{alt} || "[IMG]");
}
sub a_end_handler {
my ($self, $tag) = @_;
my $text = encode('utf8', join("", @{$self->handler("text")}));
$text =~ s/^\s+//;
$text =~ s/\s+$//;
$text =~ s/\s+/ /g;
print "T $text\n";
$self->handler("text", undef);
$self->handler("start", \&a_start_handler);
$self->handler("end", undef);
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| hanchors | File | 1.17 KB | 0755 |
|
| hbody | File | 729 B | 0755 |
|
| hdisable | File | 740 B | 0755 |
|
| hdump | File | 708 B | 0755 |
|
| hform | File | 2.44 KB | 0755 |
|
| hlc | File | 717 B | 0755 |
|
| hrefsub | File | 3 KB | 0755 |
|
| hstrip | File | 1.73 KB | 0755 |
|
| htext | File | 612 B | 0755 |
|
| htextsub | File | 936 B | 0755 |
|
| htitle | File | 461 B | 0755 |
|