@@ -173,6 +173,24 @@ def do_everything(domain, output, active):
173173
174174
175175 print colored (style .BOLD + '\n ---> Finding Paste(s)..\n ' + style .END , 'blue' )
176+
177+
178+
179+ '''print colored(style.BOLD + '\n ---> Finding Paste(s)..\n ' + style.END, 'blue')
180+ if cfg.google_cse_key and cfg.google_cse_key != "XYZ" and cfg.google_cse_cx and cfg.google_cse_cx != "XYZ":
181+ total_results = google_search(domain, 1)
182+ if (total_results != 0 and total_results > 10):
183+ more_iters = (total_results / 10)
184+ if more_iters >= 10:
185+ print colored(style.BOLD + '\n ---> Too many results, Daily API limit might exceed\n ' + style.END, 'red')
186+ for x in xrange(1,more_iters + 1):
187+ google_search(domain, (x*10)+1)
188+ print "\n \n -----------------------------------------n"
189+ else:
190+ print colored(style.BOLD + '\n [-] google_cse_key and google_cse_cx not configured. Skipping paste(s) search.\n Please refer to http://datasploit.readthedocs.io/en/latest/apiGeneration/.\n ' + style.END, 'red')
191+ '''
192+
193+
176194 if cfg .google_cse_key != "" and cfg .google_cse_key != "XYZ" and cfg .google_cse_cx != "" and cfg .google_cse_cx != "XYZ" :
177195 total_results , results = google_search (domain , 1 )
178196 if not total_results == 0 :
@@ -195,8 +213,7 @@ def do_everything(domain, output, active):
195213 if more_iters >= 10 :
196214 print colored (style .BOLD + '\n ---> Too many results, Daily API limit might exceed\n ' + style .END , 'red' )
197215 for x in xrange (1 ,more_iters + 1 ):
198- results = google_search (domain , (x * 10 )+ 1 )
199- print type (results )
216+ total_results , results = google_search (domain , (x * 10 )+ 1 )
200217 if results :
201218 for y in results ['items' ]:
202219 lhtml += "<tr>"
0 commit comments