mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 09:41:06 +08:00
WIP pentest-tools module
This commit is contained in:
parent
f8dd0dcb4c
commit
7819790ecd
2 changed files with 16 additions and 6 deletions
|
@ -296,12 +296,15 @@ async def store(search_engine: Any, source: str, process_param: Any = None, stor
|
|||
print(e)
|
||||
|
||||
elif engineitem == 'pentesttools':
|
||||
from theHarvester.discovery import pentesttoolssearch
|
||||
from theHarvester.discovery import pentesttools
|
||||
try:
|
||||
pentestools_search = pentestools_search.SearchPentestTools(word)
|
||||
stor_lst.append(store(pentestools_search, engineitem, store_host=True))
|
||||
pentesttools_search = pentesttools.SearchPentestTools(word)
|
||||
stor_lst.append(store(pentesttools_search, engineitem, store_host=True))
|
||||
except Exception as e:
|
||||
if isinstance(e, MissingKey):
|
||||
print(e)
|
||||
else:
|
||||
print(f'An exception has occurred in PentestTools search: {e}')
|
||||
|
||||
elif engineitem == 'securityTrails':
|
||||
from theHarvester.discovery import securitytrailssearch
|
||||
|
|
|
@ -14,10 +14,17 @@ def __init__(self, word):
|
|||
self.proxy = False
|
||||
|
||||
async def do_search(self):
|
||||
url = f'https://dns.bufferover.run/dns?q={self.word}'
|
||||
responses = await AsyncFetcher.fetch_all(urls=[url],, json=True, proxy=self.proxy)
|
||||
subdomain_payload = {
|
||||
'op': 'start_scan',
|
||||
'tool_id': 20,
|
||||
'tool_params': {
|
||||
'target': f'{self.word}'
|
||||
}
|
||||
}
|
||||
responses = await AsyncFetcher.post_fetch(url=self.api, data=subdomain_payload, json=True)
|
||||
responses = responses[0]
|
||||
dct = responses
|
||||
print(dct)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue