Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- @set_time_limit(0);
- error_reporting(0);
- echo "
- ,--. ,--. ,--. ,--.
- | `.' |,--.--. | | ,---. | |,-. ,---. ,--.--.
- | |'.'| || .--',--. | || .-. || /| .-. :| .--'
- | | | || | | '-' /' '-' '| \ \\ --.| |
- `--' `--'`--' `-----' `---' `--'`--'`----'`--'
- \n\n";
- echo "\n==========================================================\n".
- "|| Welcome To OpenCart Extract Site From List IP ||\n".
- "==========================================================\n".
- "|| Coded By : MrJoker - Nitro Gin ||\n".
- "==========================================================\n".
- "|| Skype : live:mr9_9 - Face : 1337MrJoker ||\n".
- "==========================================================\n".
- "|| Usage : php {$argv[0]} ||\n".
- "==========================================================\n";
- echo "Enter List IP : ";
- $ips=trim(fgets(STDIN,1024));
- $d=@file($ips);
- $t=count($d);
- if(!$d){
- echo"[-] No File Found";
- exit();
- }
- if($t == 0){
- echo"[-] No IP Found";
- exit();
- }
- echo "\n[+] Loded [ $t ] IP\n";
- foreach($d as $vs){
- echo"\n[#] Start With $vs \n";
- $vs = trim($vs);
- $sites = bingReverse($vs);
- echo "\t Total Site Loaded : ".count($sites)."\n\n";
- foreach($sites as $site){
- $opencart = "http://".$site."/admin/index.php";
- $getcontents=@get_source($opencart);
- echo "[#] Scaning : $site\n";
- if (preg_match('#/login" method="#i', $getcontents)) {
- echo "[+] OpenCart Site = http://"."$site"."/ "."\n";
- echo "\n";
- $fopen = fopen("OpenCart.txt","a+");
- fwrite($fopen,"http://".$site."/\r\n");
- fclose($fopen);
- } else {
- echo "\n";
- echo "[-] Not OpenCart"."\n";
- echo "\n";
- }
- }
- }
- function bingReverse($ip){
- $ch = curl_init();
- $i = 1;
- while($i){
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
- curl_setopt($ch, CURLOPT_URL, "http://www.bing.com/search?q=ip%3A$ip&first=$i");
- curl_setopt($ch, CURLOPT_USERAGENT, 'msnbot/1.0 (+http://search.msn.com/msnbot.htm)');
- curl_setopt($ch, CURLOPT_ENCODING, "gzip, deflate, compress");
- $data = curl_exec($ch);
- preg_match_all('/<h2><a href="(.*?)"/', $data, $matches);
- $links = array_unique($matches[1]);
- foreach($links as $link){
- $allLinks[] = correctit($link);
- }
- if(!preg_match('#"sw_next"#', $data)) break;
- $i+=10;
- }
- curl_close($ch);
- if(!empty($allLinks) && is_array($allLinks)){
- return array_unique($allLinks);
- }
- }
- function correctit($http){
- if((strpos(trim($http), "http://") === 0) || (strpos(trim($http), "https://") === 0)){
- return parse_url($http, PHP_URL_HOST);
- }else{ return trim($http); }
- }
- function get_source($link, $safemode = false, $agent){
- if($safemode === true) sleep(1);
- if(!$agent){ $agent='Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'; }
- if(!function_exists('curl_init')){
- return file_get_contents($link);
- }else{
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_URL, $link);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_USERAGENT, $agent);
- curl_setopt($ch, CURLOPT_ENCODING, 0);
- curl_setopt($ch, CURLOPT_TIMEOUT, 30);
- $data = curl_exec($ch);
- curl_close($ch);
- return $data;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment