guelfoweb / knock

Knock Subdomain Scan
GNU General Public License v3.0
3.85k stars 856 forks source link

Fix virustotal module bug. #117

Closed r0ckysec closed 2 years ago

r0ckysec commented 2 years ago

Fix virustotal module bug.


  _  __                 _                
 | |/ /                | |   v5.2.0            
 | ' / _ __   ___   ___| | ___ __  _   _ 
 |  < | '_ \ / _ \ / __| |/ / '_ \| | | |
 | . \| | | | (_) | (__|   <| |_) | |_| |
 |_|\_\_| |_|\___/ \___|_|\_\ .__/ \__, |
                            | |     __/ |
                            |_|    |___/ 

Traceback (most recent call last):
  File "/root/scout/script/subdomain/./script/knock/knockpy.py", line 15, in <module>
    main()
  File "/root/scout/script/subdomain/./script/knock/knockpy.py", line 10, in main
    knockpy.main()
  File "/root/scout/script/subdomain/script/knock/knockpy/knockpy.py", line 603, in main
    local, google, duckduckgo, virustotal = Wordlist.get(domain)
  File "/root/scout/script/subdomain/script/knock/knockpy/knockpy.py", line 120, in get
    virustotal = list(Wordlist.virustotal(domain, config_api["virustotal"])) if "virustotal" in config_wordlist["remote"] else []
  File "/root/scout/script/subdomain/script/knock/knockpy/knockpy.py", line 102, in virustotal
    resp = resp.json()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.9/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)
guelfoweb commented 2 years ago

Thanks!