Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Grab website From IP.
- // by tu5b0l3d
- // thx magelang6etar
- // http://www.indoxploit.or.id/2016/12/massive-grab-website-from-ip.html
- //example: 31.170.164 same with 31.170.164.1-254
- $ip = "31.170.164";
- for($i=1;$i<=254;$i++){
- echo "$ip.$i\n";
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_URL => "http://reverseip.domaintools.com/search/?q=$ip.$i",
- CURLOPT_USERAGENT => 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20140722 Firefox/24.0 Iceweasel/24.7.0'
- ));
- $resp = curl_exec($curl);
- curl_close($curl);
- preg_match("/<span title=\"$ip.$i\">(.*?)<\/span><\/td>/i", $resp, $domains);
- $su = "$domains[1]";
- echo "$su\n";
- file_put_contents("Result.htm", "$su\n", FILE_APPEND);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement