Advertisement
AZZATSSINS_CYBERSERK

Dorker

Sep 11th, 2017
876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.63 KB | None | 0 0
  1. <?php
  2. /*
  3. TOOL : DORKER
  4. AUTHOR : AZZATSSINS CYBERSERKERS
  5. change the right not make u a hacker :P
  6. thx to Mr.MaGnoM
  7. */
  8. @error_reporting(0);
  9. @ini_set('display_errors', 0);
  10. print "\e[34m   ___ ________  ___ ___________________  ______
  11.  / _ /_  /_  / / _ /_  __/ __/ __/  _/ |/ / __/
  12. / __ |/ /_/ /_/ __ |/ / _\ \_\ \_/ //    /\ \  
  13. /_/ |_/___/___/_/ |_/_/ /___/___/___/_/|_/___/  
  14.                                                
  15.                                                
  16. ";
  17. echo "\e[93m\n#######DORKER BY AZZATSSINS######\n";
  18. echo "1 >> Dork tag HTML\n2 >> Dork biasa\nPilih : "; $plih=trim(fgets(STDIN));
  19. if($plih == 1){
  20. echo "\nInput Tag HTML : "; $dork=trim(urlencode(fgets(STDIN)));
  21. echo "\nJumlah Halaman : "; $hlm=trim(fgets(STDIN));
  22. for($i=1;$i<=$hlm;$i++){
  23. $ch=curl_init("https://publicwww.com/websites/".$dork."/".$i);
  24. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  25. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  26. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  27. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  28. curl_setopt($ch, CURLOPT_POST, 1);
  29. $lol=curl_exec ($ch);
  30. curl_close($ch);
  31. preg_match_all('#href="(.*?)"><span#', $lol, $azx);
  32. foreach($azx[1] as $azz){
  33. echo "\n".$azz;
  34. }}}elseif($plih == 2){
  35. echo "\nInput Dork : "; $dork=trim(urlencode(fgets(STDIN)));
  36. function getsource($url, $proxy) {
  37.     $curl = curl_init($url);
  38.     curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  39.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  40.     if($proxy) {
  41.         $proxy = explode(':', autoprox());
  42.         curl_setopt($curl, CURLOPT_PROXY, $proxy[0]);
  43.         curl_setopt($curl, CURLOPT_PROXYPORT, $proxy[1]);
  44.     }
  45.     $content = curl_exec($curl);
  46.     curl_close($curl);
  47.     return $content;
  48. }
  49.     $npage = 1;
  50.     $npages = 30000;
  51.     $allLinks = array();
  52.     $lll = array();
  53.     while($npage <= $npages) {
  54.         $x = getsource("http://www.bing.com/search?q=".$dork."&first=".$npage."", $proxy);
  55.         if($x) {
  56.             preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
  57.             foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
  58.             $npage = $npage + 10;
  59.             if (preg_match("(first=" . $npage . "&amp)siU", $x, $linksuiv) == 0) break;
  60.         } else break;
  61.     }
  62.     $URLs = array();
  63.     foreach($allLinks as $url){
  64.         $exp = explode("/", $url);
  65.         $URLs[] = $exp[2];
  66.     }
  67.     $array = array_filter($URLs);
  68.     $array = array_unique($array);
  69.     $sss = count(array_unique($array));
  70.     echo "\nTotal sites : $sss";
  71.     foreach($array as $domain) {
  72.         echo "\nhttp://$domain/";
  73.     }}else{
  74. echo " \nMasukin pilihan yang bener bangsat\n";
  75. }
  76. echo "\n=== DONE ===\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement