diff --git a/theHarvester/discovery/sitedossier.py b/theHarvester/discovery/sitedossier.py index 8dfa7c82114..9dff6598b29 100644 --- a/theHarvester/discovery/sitedossier.py +++ b/theHarvester/discovery/sitedossier.py @@ -1,6 +1,5 @@ from theHarvester.lib.core import * from theHarvester.parsers import myparser -import requests class SearchSitedossier: @@ -14,8 +13,8 @@ def __init__(self, word): async def do_search(self): url = f"http://{self.server}/parentdomain/{self.word}" headers = {'User-Agent': Core.get_user_agent()} - response = requests.get(url, headers=headers) - self.totalresults += response.text + response = await AsyncFetcher.fetch_all([url], json=False, headers=headers, proxy=self.proxy) + self.totalresults += response[0] async def get_hostnames(self): rawres = myparser.Parser(self.totalresults, self.word)