Skip to content

Commit

Permalink
Escape double quotes instead of single quotes in orther to match rege…
Browse files Browse the repository at this point in the history
…x that finds DNSdumpster token. Closes: #150
  • Loading branch information
Marvzinc committed Dec 6, 2019
1 parent 6795cc5 commit 1295295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dnsdumpster.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def dnsdumpster(domain, output_dir):
"""Query dnsdumpster.com."""
response = requests.Session().get('https://dnsdumpster.com/').text
csrf_token = re.search(
r"name='csrfmiddlewaretoken' value='(.*?)'", response).group(1)
r'name=\"csrfmiddlewaretoken\" value=\"(.*?)\"', response).group(1)

cookies = {'csrftoken': csrf_token}
headers = {'Referer': 'https://dnsdumpster.com/'}
Expand Down

0 comments on commit 1295295

Please sign in to comment.