Skip to content

Commit

Permalink
Merge pull request #1428 from L1ghtn1ng/dev
Browse files Browse the repository at this point in the history
add asyncfetch to sitedossier.py
  • Loading branch information
L1ghtn1ng committed May 19, 2023
2 parents 18d4c91 + f4df9f6 commit 48e719b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions theHarvester/discovery/sitedossier.py
@@ -1,6 +1,5 @@
from theHarvester.lib.core import *
from theHarvester.parsers import myparser
import requests


class SearchSitedossier:
Expand All @@ -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)
Expand Down

0 comments on commit 48e719b

Please sign in to comment.