Advertisement
KingSkrupellos

Google Dorker ile Kolay Site Bulma Yöntemi PHP Code

Sep 14th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.63 KB | None | 0 0
  1. Yazar => KingSkrupellos - Cyberizm.Org Digital Security Team
  2.  
  3. Ana Başlık => Google Arama Motoru Dorker ile Kolay Site Bulma Yöntemi PHP Perl Python Kodu
  4.  
  5. Google Search Engine Dorker PHP - PERL - PYTHON
  6.  
  7. 1) XAMPP Yeni PHP Kod [ CDST Google Dorker CDST ]
  8.  
  9. Önemli => Bilgisayarınızda XAMPP yüklü olması gerekiyor. PHP kodlarını çalıştırabilmeniz için.
  10.  
  11. [code]https://www.apachefriends.org/tr/download.html[/code]
  12.  
  13. Ne işe Yarar => Google Arama Motorunda İstediğiniz Herhangi Bir Dork [ Özel Aratma Kelimesinden veya Linkten ] Açıklı Tüm Siteleri Tarar ve Size Sunar.
  14.  
  15. Aşağıdaki Kodlar Sadece Windows için Geçerlidir.
  16.  
  17. Ayrıca aşağıdaki ActivePerl Dilinde Yazılmış Kodlar Harici MacOSX ve Linux işletim sistemi kullanıyorsanız Google Dork Scanner Tam Size Göre :) :cigara:
  18.  
  19. [code]https://github.com/0xhex/google-dork-scanner[/code]
  20.  
  21. Google Dorker'ın Kullanma Talimatları ve Videoları
  22.  
  23. [video=youtube]https://www.youtube.com/watch?v=A2zpIZvPgtQ[/video]
  24.  
  25. [hide][code]<?php
  26. /**
  27. KingSkrupellos - Cyberizm.Org Digital Security Team
  28. CDST Google Dorker CDST
  29. **/
  30. error_reporting(0);
  31.  
  32. function save($data){
  33. $fp = @fopen("google_dom.htm", "a") or die("cant open file");
  34. fwrite($fp, $data);
  35. fclose($fp);
  36. }
  37. $links = array();
  38. $dork = "intext:KingSkrupellos";
  39. for($i=0;$i<=1000;$i+=10){
  40. $xml = new DOMDocument('1.0', "UTF-8");
  41.  
  42. $xml->loadHTMLFile("http://www.google.com/search?q=".urlencode($dork)."&start=$i");
  43. echo "ahh";
  44.  
  45. foreach($xml->getElementsByTagName('cite') as $link) {
  46.  
  47. $su = "http://$link->nodeValue";
  48.  
  49. $ahh = parse_url($su, PHP_URL_HOST);
  50. if(in_array($ahh, $links) or preg_match("/blogspot/",$ahh)) {
  51. echo "$ahh element is in the array";
  52. }
  53. else{
  54. save("$ahh<br>");
  55. $links[] = $ahh;
  56. print_r($links);
  57. }
  58. }
  59. }
  60.  
  61.  
  62. ?>[/code][/hide]
  63.  
  64.  
  65. 2) Eski Kod [ CDST Google Dorker CDST ]
  66.  
  67. [video=youtube]https://www.youtube.com/watch?v=Ggv4kkYMEM8[/video]
  68.  
  69. [hide][code]<?php
  70. // KingSkrupellos - Cyberizm.Org Digital Security Team
  71. // CDST Google Dorker CDST
  72. error_reporting(0);
  73. function save($data){
  74. $fp = @fopen("hasil.htm", "a") or die("cant open file");
  75. fwrite($fp, $data);
  76. fclose($fp);
  77. }
  78. $list = array();
  79. $b = 5;
  80. $dorks = "intext:KingSkrupellos";
  81. $dork = urlencode($dorks);
  82. for($i=0;$i+=$b;$i++){
  83. $kuki = rand();
  84. echo $i;
  85. //http://ajax.googleapis.com/ajax/services/search/web?v=1.0&hl=iw&rsz=8&q=$dork&key=$kunAPI&start=$i
  86. $ch1 = curl_init ("https://www.google.com/search?q=$dork&btnG=Search&start=$i#q=$dork&start=$i");
  87. curl_setopt ($ch1, CURLOPT_RETURNTRANSFER, 1);
  88. curl_setopt ($ch1, CURLOPT_FOLLOWLOCATION, 1);
  89. curl_setopt ($ch1, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  90. curl_setopt ($ch1, CURLOPT_SSL_VERIFYPEER, 0);
  91. curl_setopt ($ch1, CURLOPT_SSL_VERIFYHOST, 0);
  92. curl_setopt($ch1, CURLOPT_COOKIEJAR,"$kuki.txt");
  93. curl_setopt($ch1, CURLOPT_COOKIEFILE,"$kuki.txt");
  94. $result = curl_exec ($ch1);
  95.  
  96. preg_match_all("/style=\"white-space:nowrap\"><c(.*?)\//", $result, $a);
  97. foreach($a[1] as $sitesn){
  98. $sites = explode("ite class=\"_Rm\">", $sitesn);
  99. $sulton = parse_url("http://$sites[1]", PHP_URL_HOST);
  100. if(!in_array($sulton,$list)){
  101. $list[] = $sulton;
  102. echo "$sulton\n";
  103. save("$sulton<br>");
  104.  
  105.  
  106. }
  107. else{
  108. echo "$sulton ============================>\n";
  109. }
  110. }
  111.  
  112. }
  113. ?>[/code][/hide]
  114.  
  115. 3) XAMPP Google Auto Dorker PHP Code [ CDST Google Dorker CDST ]
  116.  
  117. [video=youtube]https://www.youtube.com/watch?v=E_lYjmWU7gg[/video]
  118.  
  119. [hide][code]<?php
  120. /**
  121. // KingSkrupellos - Cyberizm.Org Digital Security Team
  122. // CDST Google Dorker CDST
  123. // www.cyberizm.org
  124. **/
  125. error_reporting(0);
  126.  
  127. function save($data){
  128. $fp = @fopen("Result-dorker.html", "a") or die("cant open file");
  129. fwrite($fp, $data);
  130. fclose($fp);
  131. }
  132. $links = array();
  133. $dork = "Text input Dork!";
  134. for($i=0;$i<=1000;$i+=10){
  135. $xml = new DOMDocument('1.0', "UTF-8");
  136.  
  137. $xml->loadHTMLFile("http://www.google.com/search?q=".urlencode($dork)."&start=$i");
  138. echo "ahh";
  139.  
  140. foreach($xml->getElementsByTagName('cite') as $link) {
  141.  
  142. $su = "http://$link->nodeValue";
  143.  
  144. $ahh = parse_url($su, PHP_URL_HOST);
  145. if(in_array($ahh, $links) or preg_match("/blogspot/",$ahh)) {
  146. echo "$ahh element is in the array";
  147. }
  148. else{
  149. save("$ahh<br>");
  150. $links[] = $ahh;
  151. print_r($links);
  152. }
  153. }
  154. }
  155.  
  156.  
  157. ?>[/code][/hide]
  158.  
  159. Perl Dilinde Yazılmış Bir Başka Güzel Script Daha :D :) :cigara:
  160.  
  161. [img]https://i.hizliresim.com/Mvja71.png[/img]
  162.  
  163. [img]https://i.hizliresim.com/qWzJLd.png[/img]
  164.  
  165. [hide][code] #!/usr/bin/perl -w
  166. #####################################################################################################################
  167. #[+] Usage: GoogleDork.pl <dork> [+] #
  168. # #
  169. #Coded By Cyberizm Digital Security Team #
  170. # KingSkrupellos #
  171. #Ready Stock: #
  172. #CC Fresh | cPanel | Shell | Mailer | RDP | SSH root | SSH Tuneling | FTP | WebMail | SMTP | Email Leads | ScamPages#
  173. # İletişim Adresim : k1ngskrup3ll0s@gmail.com #
  174. #####################################################################################################################
  175. use WWW::Mechanize;
  176. use WWW::Mechanize::TreeBuilder;
  177. use URI::Escape;
  178. if(@ARGV!= 1){&usage;}
  179. else{
  180. print "\n";
  181. print "----------------------------------\n";
  182. print "- GoogleDork.pl -\n";
  183. print "- by Cyberizm.Org -\n";
  184. print "----------------------------------\n";
  185. print "\n";
  186. print "Please Wait...\n";
  187. print "\n";
  188. open(LOG,">>results.txt") || die "Can't open file\n";
  189. print LOG "-------------------------------\n";
  190. print LOG "Dork: ".$ARGV[0]."\n";
  191. print LOG "-------------------------------\n";
  192. close(LOG);
  193. my $google = "http://www.google.com/search?q=";
  194. my $dork = $ARGV[0];
  195. my $mech = WWW::Mechanize->new;
  196. WWW::Mechanize::TreeBuilder->meta->apply($mech);
  197. for (my $i=0; $i<=1000; $i+=100){
  198. $mech->get($google.$dork."&num=100&start=".$i);
  199. my @links = $mech->links();
  200. for my $link ( @links ) {
  201. my $res = $link->url;
  202. while ($res =~ m/\/url\?q=(.*?)&sa=U&ei=/g) {
  203. my $link = $1;
  204. if ($link !~ /google/){
  205. my $ss = uri_unescape($1);
  206. print $ss."\n";
  207. open(LOG,">>results.txt") || die "Can't open file\n";
  208. print LOG $ss, "\n";
  209. close(LOG);
  210. }
  211. }
  212. }
  213. }
  214. print "Done!!\n";
  215. }
  216. sub usage{
  217. print "[-] GoogleDork.pl <dork>\n";
  218. print "[-] example : GoogleDork.pl index.php?id\n";
  219. die("[!] Usage incorrect !!\n");
  220. } [/code][/hide]
  221.  
  222. Kullanımı =>
  223.  
  224. perl GoogleDork.pl <dork>
  225.  
  226. Örnek =>
  227.  
  228. perl GoogleDork.pl index.php?id
  229.  
  230. Python Dilinde Yazılmış Bir Başka Güzel Script Daha :D :)
  231.  
  232. [img]https://i.hizliresim.com/9djDyN.png[/img]
  233.  
  234. [hide][code]# This is a universal google dorker
  235. # You can use this for getting urls of every dork you know.
  236. # Just input the dork and number of pages,
  237. # the script will take care of the rest.
  238.  
  239. #-----------------------------------------------------
  240. # Name : Google Dorker.py
  241. # Version : beta
  242. # Author : KingSkrupellos
  243. # Cyberizm.Org Digital Security Team
  244. #-----------------------------------------------------
  245.  
  246. ###########################################################
  247.  
  248. global logo
  249. logo = '''
  250. ___ _ ___ _
  251. / __|___ ___ __ _| |___ | \ ___ _ _| |_____ _ _
  252. | (_ / _ \/ _ \/ _` | / -_) | |) / _ \ '_| / / -_) '_|
  253. \___\___/\___/\__, |_\___| |___/\___/_| |_\_\___|_|
  254. |___/
  255. (- Version : Beta -)
  256. (- Author : KingSkrupellos -)
  257. (- Cyberizm.Org Digital Security Team -)'''
  258. try:
  259. from pygoogle import pygoogle
  260. except ImportError:
  261. print "[!] Pygoogle file not found!"
  262. print "[!] Program can't continue"
  263. print "[!] Get pygoogle file from this link"
  264. print "\n\t\t[ http://pastebin.com/Q0xVF2nV ]"
  265.  
  266. class dorker():
  267.  
  268. def __init__(self):
  269. print logo
  270.  
  271. search_dork = raw_input("\n\nEnter Dork : ")
  272. pages = input("Enter number of pages : ")
  273. f_output = raw_input("Enter file to output urls : ")
  274.  
  275. if search_dork != '' and pages != '':
  276. self.dork(search_dork,pages,f_output)
  277.  
  278. def dork(self,search_term,p,output):
  279. print "[+] Searching for %s " % search_term
  280. gs = pygoogle(search_term)
  281. gs.pages = p
  282. print "[+] Results Found : %s " % (gs.get_result_count())
  283. if gs.get_result_count() == 0: print "[-] No Results Found"; exit
  284.  
  285. print "[+] Fetching [%s] Results " % (gs.get_result_count())
  286. url_list = gs.get_urls()
  287. print "[+] Got [%s] URLs" % (len(url_list))
  288. print "[+] Writing URLs to [%s] " % (output)
  289. with open(output,'w') as w_file:
  290. for i in url_list: w_file.write(i+'\n')
  291. print "[+] URLs saved to [%s] " % (output)
  292.  
  293. def main():
  294. google = dorker()
  295.  
  296.  
  297. if __name__ == '__main__':
  298. main()[/code][/hide]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement