WIP pentest-tools module

This commit is contained in:
L1ghtn1ng 2020-02-18 23:22:58 +00:00
parent f8dd0dcb4c
commit 7819790ecd
2 changed files with 16 additions and 6 deletions

View file

@ -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:
print(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

View file

@ -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)