Te-k/harpoon

BUG: Threatminer API seems broken

evilcel3ri opened this issue · 3 comments

Command ran: harpoon intel domain perdu.com

###################### perdu.com ###################
[+] Checking ThreatMiner...
Traceback (most recent call last):
  File "/home/chris/_HUB/harpoon/.env/bin/harpoon", line 8, in <module>
    sys.exit(main())
  File "/home/chris/_HUB/harpoon/.env/lib/python3.7/site-packages/harpoon/main.py", line 61, in main
    plugins[args.command].run(config, args, plugins)
  File "/home/chris/_HUB/harpoon/.env/lib/python3.7/site-packages/harpoon/commands/intel.py", line 70, in run
    plugins[p].intel("domain", unbracket(args.DOMAIN), data, conf)
  File "/home/chris/_HUB/harpoon/.env/lib/python3.7/site-packages/harpoon/commands/threatminerc.py", line 206, in intel
    response = tm.passive_dns(query)
  File "/home/chris/_HUB/harpoon/.env/lib/python3.7/site-packages/threatminer/threatminer.py", line 46, in passive_dns
    response = self.session.get('https://api.threatminer.org/v2/domain.php?q={}&rt=2'.format(site)).json()
  File "/home/chris/_HUB/harpoon/.env/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Cannot reproduce, probably not on our side

zaqes commented

I also had this issue, but it was fixed with the latest commits.

Ok, works my other machine too where the problem was seen first. I guess it was not on our side or something like that.