API-dnsdumpster.com icon indicating copy to clipboard operation
API-dnsdumpster.com copied to clipboard

Update to new dnsdumpster api

Open AICDEV opened this issue 9 months ago • 8 comments

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

AICDEV avatar Apr 17 '25 16:04 AICDEV

@PaulSec any progress with this pr? Would love to use this package in the future...

AICDEV avatar Apr 29 '25 04:04 AICDEV

Hello there, I am working on it. I have pretty odd results.. I will get back to you when I fix it properly.

PaulSec avatar May 02 '25 16:05 PaulSec

Hey, Just let me know if I can support with something

AICDEV avatar May 02 '25 16:05 AICDEV

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.

PaulSec avatar May 05 '25 18:05 PaulSec

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.

Screenshot 2025-05-06 at 16 52 34

AICDEV avatar May 06 '25 14:05 AICDEV

@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'

AICDEV avatar May 09 '25 18:05 AICDEV

@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.

AICDEV avatar May 09 '25 18:05 AICDEV

@PaulSec any progress within your review/test?

AICDEV avatar Jul 16 '25 09:07 AICDEV