zeropwn/spyse.py

it is not working now!!!

Closed this issue · 2 comments

hello.The spsee's program, which worked well before, no longer works. cidr and ssl-certificates scans now fail. the program started giving json errors.


root@localhost:~# spyse -target 55.105.40.0/24 -param cidr --domains-on-ip

  File "/usr/local/bin/spyse", line 188, in get_domains_on_ip
    data = s.domains_on_ip(target, param=param, page=page)
  File "/usr/local/lib/python3.7/dist-packages/spyse/spyse.py", line 216, in domains_on_ip
    return r.json()
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 892, 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)


root@localhost:~# spyse -target "org: Microsoft" --ssl-certificates    

Traceback (most recent call last):
  File "/usr/local/bin/spyse", line 242, in get_ssl_certificates
    certs = s.ssl_certificates(target, param, page)
  File "/usr/local/lib/python3.7/dist-packages/spyse/spyse.py", line 457, in ssl_certificates
    return r.json()
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 892, 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)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/spyse", line 448, in <module>
    print(get_ssl_certificates(args.target, param, page))
  File "/usr/local/bin/spyse", line 258, in get_ssl_certificates
    return certs
UnboundLocalError: local variable 'certs' referenced before assignment


+1 same issue

Spyse deprecated the v1 API, which is currently what spyse.py uses. An updated version is being worked on. Thanks for your patience.