Got crtsh search working as problem was in get_hostnames first line replaced self.results to self.totalresults.

This commit is contained in:
NotoriousRebel 2018-11-27 23:45:19 -05:00
parent d8a8cb3ccc
commit 00c884af13

View file

@ -26,10 +26,8 @@ def do_search(self):
links = self.get_info(r.text)
for link in links:
r = requests.get(link, headers=headers)
for l in str(r.text).splitlines():
if self.word in l:
print('concatting l to totalresults: ', l.replace('&nbsp','').replace(';',''))
self.totalresults += l
self.results = r.text
self.totalresults += self.results
def get_info(self,text):
lines = []
@ -53,7 +51,7 @@ def get_info(self,text):
def get_hostnames(self):
rawres = myparser.parser(self.results, self.word)
rawres = myparser.parser(self.totalresults, self.word)
return rawres.hostnames()
def process(self):