mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-21 15:56:44 +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
|
@ -26,10 +26,8 @@ def do_search(self):
|
||||||
links = self.get_info(r.text)
|
links = self.get_info(r.text)
|
||||||
for link in links:
|
for link in links:
|
||||||
r = requests.get(link, headers=headers)
|
r = requests.get(link, headers=headers)
|
||||||
for l in str(r.text).splitlines():
|
self.results = r.text
|
||||||
if self.word in l:
|
self.totalresults += self.results
|
||||||
print('concatting l to totalresults: ', l.replace(' ','').replace(';',''))
|
|
||||||
self.totalresults += l
|
|
||||||
|
|
||||||
def get_info(self,text):
|
def get_info(self,text):
|
||||||
lines = []
|
lines = []
|
||||||
|
@ -53,7 +51,7 @@ def get_info(self,text):
|
||||||
|
|
||||||
|
|
||||||
def get_hostnames(self):
|
def get_hostnames(self):
|
||||||
rawres = myparser.parser(self.results, self.word)
|
rawres = myparser.parser(self.totalresults, self.word)
|
||||||
return rawres.hostnames()
|
return rawres.hostnames()
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
|
Loading…
Reference in a new issue