nmmapper / dnsdumpster

A tool to perform DNS reconnaissance on target networks. Among the DNS information got from include subdomains, mx records, web application firewall detection and more fingerprinting and lookups

Home Page:https://www.nmmapper.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simplejson.errors.JSONDecodeError

Robiinn opened this issue · comments

I tried running the latest version of dnsdumpster which gave me the following error:

Starting dns dump against nmmapper.com
Searching using engine DNSdumpster
Searching using engine Netcraft
Searching using engine Virustotal
Searching using engine ThreatCrowd
Searching using engine SSL Certificates
Process Virustotal-4:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/home/user/dnsdumpster/dnsdumpster.py", line 200, in run
    domain_list = self.enumerate()
  File "/home/user/dnsdumpster/dnsdumpster.py", line 614, in enumerate
    resp = self.send_req(url)
  File "/home/user/dnsdumpster/dnsdumpster.py", line 609, in send_req
    return resp.json()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 917, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value] : 0
ERROR  HTTPSConnectionPool(host='www.threatcrowd.org', port=443): Max retries exceeded with url: /searchApi/v2/domain/report/?domain=nmmapper.com (Caused by SSLError(CertificateError("hostname 'www.threatcrowd.org' doesn't match '*.otxb.io'")))
{
    "asn": null,
    "host": "nmmapper.com",
    "mx": [],
    "ns": [
        {
            "ip": "108.162.192.56",
            "ns": "adi.ns.cloudflare.com."
        },
        {
            "ip": "172.64.33.170",
            "ns": "gordon.ns.cloudflare.com."
        }
    ],
    "server": "cloudflare",
    "subdomains": [],
    "txt": [
        "\"v=spf1 include:spf.privateemail.com ~all\""
    ]
}

installed on a Kali Linux system.

Any fix for this issue?. I'm having exact same issue.

did you fixed it? cuz i don´t know what to do anymore

i got an error like this

Starting dns dump against facebook.com
Searching using engine DNSdumpster
Searching using engine Netcraft
Searching using engine Virustotal
Searching using engine ThreatCrowd
Searching using engine SSL Certificates
Process Virustotal-4:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "dnsdumpster.py", line 200, in run
    domain_list = self.enumerate()
  File "dnsdumpster.py", line 614, in enumerate
    resp = self.send_req(url)
  File "dnsdumpster.py", line 609, in send_req
    return resp.json()
  File "/home/superuser/.local/lib/python3.8/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
ERROR  HTTPSConnectionPool(host='www.threatcrowd.org', port=443): Max retries exceeded with url: /searchApi/v2/domain/report/?domain=facebook.com (Caused by SSLError(SSLCertVerificationError("hostname 'www.threatcrowd.org' doesn't match '*.otxb.io'")))
{
    "asn": null,
    "host": "facebook.com",
    "mx": [],
    "ns": [
        {
            "ip": "185.89.219.12",
            "ns": "d.ns.facebook.com."
        },
        {
            "ip": "129.134.30.12",
            "ns": "a.ns.facebook.com."
        },
        {
            "ip": "185.89.218.12",
            "ns": "c.ns.facebook.com."
        },
        {
            "ip": "129.134.31.12",
            "ns": "b.ns.facebook.com."
        }
    ],
    "server": null,
    "subdomains": [],
    "txt": [
        "\"google-site-verification=sK6uY9x7eaMoEMfn3OILqwTFYgaNp4llmguKI-C3_iA\"",
        "\"google-site-verification=wdH5DTJTc9AYNwVunSVFeK0hYDGUIEOGb-RReU6pJlY\"",
        "\"v=spf1 redirect=_spf.facebook.com\"",
        "\"google-site-verification=A2WZWCNQHrGV_TWwKh6KHY90tY0SHZo_RnyMJoDaG0s\"",
        "\"ghfksmtc0x74q6g76g8nnw3psmx8zkwp\""
    ]
}

installed on Ubuntu 20.04