It looks like you're new here. If you want to get involved, click one of these buttons!
use HTTP::Request;
use LWP::UserAgent;
system('cls');
print \"====================================================================\n\";
print \"[Mr. P-teo] Admin Page Scanner +\n\n\";
print \"URL must contain http://\n\";
print \"====================================================================\n\n\";
print \"Website: \";
chomp ($url = <STDIN>);
my $file = \"admins.txt\";
open (FH, \"< $file\") or die \"Can't open $file for read: $!\";
my @directorys;
while (<FH>) {
push (@directorys, $_);
}
close FH or die \"Cannot close $file: $!\";
my $amount = 0;
my $success = 0;
my $useful = 0;
foreach $ways(@directorys){
$amount++;
my $web=$url.\"/\".$ways;
my $req=HTTP::Request->new(GET=>$web);
my $ua=LWP::UserAgent->new();
$ua->timeout(30);
my $response=$ua->request($req);
if($response->content =~ /404 Not Found/){
}elsif($response->content =~ /Page Cannot be displayed/){
}else{
if($response->content =~ /username/ ||
$response->content =~ /password/ ||
$response->content =~ /admin/ ||
$response->content =~ /login/ ||
$response->content =~ /administration/ ||
$response->content =~ /authorisation/ ||
$response->content =~ /sign in/ ||
$response->content =~ /signin/ ||
$response->content =~ /user/){
print \"\n\tPage Found => $web\";
$success++;
}
}
}
print \"\n\n\n------------------------------------------\n[$amount Scanned] + [$success Found]\n-------------------------------------------\n\n\";