Skip to content

Commit 063c536

Browse files
committed
update xls path to xlsx path; update regex to match new generated dumpster id
1 parent 48f479c commit 063c536

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnsdumpster/DNSDumpsterAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def search(self, domain):
119119
# XLS hosts.
120120
# eg. tsebo.com-201606131255.xlsx
121121
try:
122-
pattern = r'/static/xls/' + domain + '-[0-9]{12}\.xlsx'
122+
pattern = r'/static/xlsx/' + re.escape(domain) + r'-[a-f0-9\-]{36}\.xlsx'
123123
xls_url = re.findall(pattern, req.content.decode('utf-8'))[0]
124124
xls_url = 'https://dnsdumpster.com' + xls_url
125125
xls_data = base64.b64encode(self.session.get(xls_url).content)

0 commit comments

Comments
 (0)