Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- TOOL : DORKER
- AUTHOR : AZZATSSINS CYBERSERKERS
- change the right not make u a hacker :P
- thx to Mr.MaGnoM
- */
- @error_reporting(0);
- @ini_set('display_errors', 0);
- print "\e[34m ___ ________ ___ ___________________ ______
- / _ /_ /_ / / _ /_ __/ __/ __/ _/ |/ / __/
- / __ |/ /_/ /_/ __ |/ / _\ \_\ \_/ // /\ \
- /_/ |_/___/___/_/ |_/_/ /___/___/___/_/|_/___/
- ";
- echo "\e[93m\n#######DORKER BY AZZATSSINS######\n";
- echo "1 >> Dork tag HTML\n2 >> Dork biasa\nPilih : "; $plih=trim(fgets(STDIN));
- if($plih == 1){
- echo "\nInput Tag HTML : "; $dork=trim(urlencode(fgets(STDIN)));
- echo "\nJumlah Halaman : "; $hlm=trim(fgets(STDIN));
- for($i=1;$i<=$hlm;$i++){
- $ch=curl_init("https://publicwww.com/websites/".$dork."/".$i);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
- curl_setopt($ch, CURLOPT_POST, 1);
- $lol=curl_exec ($ch);
- curl_close($ch);
- preg_match_all('#href="(.*?)"><span#', $lol, $azx);
- foreach($azx[1] as $azz){
- echo "\n".$azz;
- }}}elseif($plih == 2){
- echo "\nInput Dork : "; $dork=trim(urlencode(fgets(STDIN)));
- function getsource($url, $proxy) {
- $curl = curl_init($url);
- curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- if($proxy) {
- $proxy = explode(':', autoprox());
- curl_setopt($curl, CURLOPT_PROXY, $proxy[0]);
- curl_setopt($curl, CURLOPT_PROXYPORT, $proxy[1]);
- }
- $content = curl_exec($curl);
- curl_close($curl);
- return $content;
- }
- $npage = 1;
- $npages = 30000;
- $allLinks = array();
- $lll = array();
- while($npage <= $npages) {
- $x = getsource("http://www.bing.com/search?q=".$dork."&first=".$npage."", $proxy);
- if($x) {
- preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
- foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
- $npage = $npage + 10;
- if (preg_match("(first=" . $npage . "&)siU", $x, $linksuiv) == 0) break;
- } else break;
- }
- $URLs = array();
- foreach($allLinks as $url){
- $exp = explode("/", $url);
- $URLs[] = $exp[2];
- }
- $array = array_filter($URLs);
- $array = array_unique($array);
- $sss = count(array_unique($array));
- echo "\nTotal sites : $sss";
- foreach($array as $domain) {
- echo "\nhttp://$domain/";
- }}else{
- echo " \nMasukin pilihan yang bener bangsat\n";
- }
- echo "\n=== DONE ===\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement