mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 23:13:24 +08:00
Got crtsh search working as problem was in get_hostnames first line replaced self.results to self.totalresults.
This commit is contained in:
parent
d8a8cb3ccc
commit
00c884af13
1 changed files with 3 additions and 5 deletions
|
@ -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(' ','').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):
|
||||
|
|
Loading…
Reference in a new issue