vulmon / Vulmap

Vulmap Online Local Vulnerability Scanners Project
https://vulmon.com
GNU General Public License v3.0
950 stars 196 forks source link

JSONDecodeError #18

Closed lodb closed 2 months ago

lodb commented 4 years ago

I tried to run the script on an Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-1025-aws x86_64). The simplejson package is the one that came with Ubuntu through apt:

$ apt list --installed | grep simplejson

python3-simplejson/focal,now 3.16.0-2ubuntu2 amd64 [installed,automatic]

This is the result from python3 vulmap-linux.py:

[Info] Default Mode. Check vulnerabilities of installed packages...

Traceback (most recent call last):
  File "vulmap-linux.py", line 312, in <module>
    vulnerabilityScan()
  File "vulmap-linux.py", line 268, in vulnerabilityScan
    outResults(queryData)
  File "vulmap-linux.py", line 102, in outResults
    response = sendRequest(queryData)
  File "vulmap-linux.py", line 93, in sendRequest
    response = (requests.post(url, data=body, headers=headers)).json()
  File "/usr/lib/python3/dist-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)