krmaxwell / maltrieve

A tool to retrieve malware directly from the source for security researchers.
GNU General Public License v3.0
562 stars 184 forks source link

No JSON object could be decoded #87

Closed Healwhans closed 9 years ago

Healwhans commented 9 years ago

Maltrieve started throwing an error after execution as a regular user.

:/opt/maltrieve$ python maltrieve.py Traceback (most recent call last): File "maltrieve.py", line 336, in main() File "maltrieve.py", line 281, in main past_urls = json.load(urlfile) File "/usr/lib/python2.7/json/init.py", line 290, in load kw) File "/usr/lib/python2.7/json/init**.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

Thanks Kyle!!! -Heal

krmaxwell commented 9 years ago

Two things:

  1. You have an older version and might want to upgrade when you get a chance. No biggie, I don't think.
  2. For your specific question - what does your urls.json file look like?
Healwhans commented 9 years ago

urls.json is empty.

Healwhans commented 9 years ago

After downloading the newer version of maltrieve, the error went away. Thanks for your help.