Skip to content

Commit

Permalink
Merge pull request #25 from tensts/master
Browse files Browse the repository at this point in the history
issue #24 fix
  • Loading branch information
PaulSec authored Oct 4, 2020
2 parents 5b8c820 + fbaad42 commit eddcc18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnsdumpster/DNSDumpsterAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ def search(self, domain):
# XLS hosts.
# eg. tsebo.com-201606131255.xlsx
try:
pattern = r'https://dnsdumpster.com/static/xls/' + domain + '-[0-9]{12}\.xlsx'
pattern = r'/static/xls/' + domain + '-[0-9]{12}\.xlsx'
xls_url = re.findall(pattern, req.content.decode('utf-8'))[0]
xls_url = 'https://dnsdumpster.com' + xls_url
xls_data = base64.b64encode(self.session.get(xls_url).content)
except Exception as err:
print(err)
Expand Down

0 comments on commit eddcc18

Please sign in to comment.