Skip to content

Commit

Permalink
laramies#1383 fix dnsdumpster.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonthegoon committed Jul 24, 2023
1 parent 805a502 commit 2351c88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions theHarvester/discovery/dnsdumpster.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ async def do_search(self) -> None:
csrftoken = ""
if self.proxy is False:
async with session.get(url, headers=headers) as resp:
cookies = str(resp.cookies)
cookies = cookies.split("csrftoken=")
resp_cookies = str(resp.cookies)
cookies = resp_cookies.split("csrftoken=")
csrftoken += cookies[1][: cookies[1].find(";")]
else:
async with session.get(url, headers=headers, proxy=self.proxy) as resp:
cookies = str(resp.cookies)
cookies = cookies.split("csrftoken=")
resp_cookies = str(resp.cookies)
cookies = resp_cookies.split("csrftoken=")
csrftoken += cookies[1][: cookies[1].find(";")]
await asyncio.sleep(5)

Expand Down

0 comments on commit 2351c88

Please sign in to comment.