Update to new dnsdumpster api
Hi, I've changed the implementation to work with new api of dnsdumpster. Major change is to parse the auth_token from response html and get rid of cookies and the csrf token. Also the endpoint changes to api.dnsdumpster
Hope that helps...
Cheers
@PaulSec any progress with this pr? Would love to use this package in the future...
Hello there, I am working on it. I have pretty odd results.. I will get back to you when I fix it properly.
Hey, Just let me know if I can support with something
Can you show me what's your output when you run it with you? For me, it doesn't clear anything and I just get raised exceptions.
I have debugged a little. If I'am running test_api.py.
I am facing: "err: IndexError('list index out of range')"
Affected code (XLS DATA): ` # XLS hosts. # eg. tsebo.com-201606131255.xlsx try: 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) xls_data = None finally: res['xls_data'] = xls_data
`
But DNS records are set.
@PaulSec guess they have changed the xls path from:
pattern = r'/static/xls/' + domain + '-[0-9]{12}\.xlsx'
to
pattern = r'/static/xlsx/' + domain + '-[0-9]{12}\.xlsx'
@PaulSec I've provided a new comit to address that issues and work with the new xlsx path and also match the newly introduces id's from dumpster.
@PaulSec any progress within your review/test?