Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- by Tu5b0l3d | IndoXploit
- http://www.indoxploit.or.id/2016/06/google-dorker-new.html
- **/
- error_reporting(0);
- function save($data){
- $fp = @fopen("google_dom.htm", "a") or die("cant open file");
- fwrite($fp, $data);
- fclose($fp);
- }
- $links = array();
- $dork = "intext:IndoXploit";
- for($i=0;$i<=1000;$i+=10){
- $xml = new DOMDocument('1.0', "UTF-8");
- $xml->loadHTMLFile("http://www.google.com/search?q=".urlencode($dork)."&start=$i");
- echo "ahh";
- foreach($xml->getElementsByTagName('cite') as $link) {
- $su = "http://$link->nodeValue";
- $ahh = parse_url($su, PHP_URL_HOST);
- if(in_array($ahh, $links) or preg_match("/blogspot/",$ahh)) {
- echo "$ahh element is in the array";
- }
- else{
- save("$ahh<br>");
- $links[] = $ahh;
- print_r($links);
- }
- }
- }
- ?>
Add Comment
Please, Sign In to add comment