Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

error No JSON object could be decoded #33

Open
truesamurai opened this issue Nov 20, 2019 · 3 comments
Open

error No JSON object could be decoded #33

truesamurai opened this issue Nov 20, 2019 · 3 comments

Comments

@truesamurai
Copy link

truesamurai commented Nov 20, 2019

When I do a scan I get some results, but then this error pops up:
I am on Kali version 2019.4.

Traceback (most recent call last):
File "wordpresscan.py", line 62, in
Scan_Engine(wp, results.aggressive)
File "/opt/Wordpresscan/engine/scan.py", line 16, in init
self.list_wp_version_vulnerabilities(wordpress, "wordpresses")
File "/opt/Wordpresscan/engine/scan.py", line 106, in list_wp_version_vulnerabilities
data = json.load(data_file)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

@slekiz
Copy link

slekiz commented Jan 20, 2020

I have same problem...

@Fa2y
Copy link

Fa2y commented Mar 26, 2020

Wpscan changed the filenames of there db so when wordpressscan is fetching the old file, it's just getting Cloudflare errors, I guess the whole scan process should be updated.
(This is from wpscan updater)

class Updater
#/!\ Might want to also update the Enumeration#cli_options when some filenames are changed here
FILES = %w[
metadata.json wp_fingerprints.json
timthumbs-v3.txt config_backups.txt db_exports.txt
dynamic_finders.yml LICENSE sponsor.txt
].freeze

  OLD_FILES = %w[
    wordpress.db user-agents.txt dynamic_finders_01.yml
    wordpresses.json plugins.json themes.json
  ].freeze

@EranGoldman
Copy link

How to fix it :

  1. Go to databases folder
  2. delete all json files (themes.json , plugins.json, wordpresses.json)
  3. download them again from the repo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants