Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"NO JSON object could be decoded" in droidbox #23

Open
Lakshmanarao1216 opened this issue Jul 18, 2020 · 3 comments
Open

"NO JSON object could be decoded" in droidbox #23

Lakshmanarao1216 opened this issue Jul 18, 2020 · 3 comments

Comments

@Lakshmanarao1216
Copy link

Lakshmanarao1216 commented Jul 18, 2020

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

I am using method_A: docker

@0xSmash0th
Copy link

0xSmash0th commented Jul 26, 2020

I am also getting this issue. Run with: sudo docker run --volume=/home/owner/one_sample:/apks alexmyg/andropytool -s /apks/ -all --color
also run without sudo
Also using docker

AndroPyTool -- STEP 7: Execute features extraction

[*] Number of APKs: 1
ANALYSING APKS...
0%| | 0/1 [00:00<?, ?it/s]Creating filesystem with parameters:
Size: 69206016
Block size: 4096
Blocks per group: 32768
Inodes per group: 4224
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 16896
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks

Traceback (most recent call last):
File "/root/AndroPyTool/androPyTool.py", line 320, in
main()
-> <function main at 0x7f5180cc71d0>
File "/root/AndroPyTool/androPyTool.py", line 164, in main
virus_total_api_key=step_analyse_virus_total
-> None
File "/root/AndroPyTool/androPyTool.py", line 316, in execute_andro_py_tool_steps
export_csv=exportCSV)
File "/root/AndroPyTool/APT_6_feat_extraction.py", line 346, in features_extractor
dynamic_analysis_dict[dynamic_tool_name] = json.load(open(dynamic_file_name))
| | | -> '/apks/Dynamic/Droidbox/EasterEgg.json'
| | -> <module 'json' from '/usr/lib/python2.7/json/init.pyc'>
| -> 'Droidbox'
-> OrderedDict()
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)
| -> ''
-> <json.decoder.JSONDecoder object at 0x7f51896ebe10>
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
| | | -> ''
| | -> <built-in method match of _sre.SRE_Pattern object at 0x7f51896e50d0>
| -> ''
-> <json.decoder.JSONDecoder object at 0x7f51896ebe10>
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

@tungjj
Copy link

tungjj commented Nov 26, 2020

I also getting this issue, how we can fix this error.
I just run this command "docker run --volume=</PATH/TO/FOLDER/WITH/APKS/>:/apks alexmyg/andropytool -s /apks/ -dr".
I realized this error just occur in some file, not at all.
" 0%| | 0/5 [00:00<?, ?it/s]Traceback (most recent call last):
File "/root/AndroPyTool/androPyTool.py", line 320, in
main()
-> <function main at 0x7f3b2815f1d0>
File "/root/AndroPyTool/androPyTool.py", line 164, in main
virus_total_api_key=step_analyse_virus_total
-> None
File "/root/AndroPyTool/androPyTool.py", line 316, in execute_andro_py_tool_steps
export_csv=exportCSV)
File "/root/AndroPyTool/APT_6_feat_extraction.py", line 346, in features_extractor
dynamic_analysis_dict[dynamic_tool_name] = json.load(open(dynamic_file_name))
| | | -> '/apks/Dynamic/Droidbox/000a75c02f4a442a4876448fc537826e.json'
| | -> <module 'json' from '/usr/lib/python2.7/json/init.pyc'>
| -> 'Droidbox'
-> OrderedDict()
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)
| -> ''
-> <json.decoder.JSONDecoder object at 0x7f3b3c193e10>
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
| | | -> ''
| | -> <built-in method match of _sre.SRE_Pattern object at 0x7f3b3c18d0d0>
| -> ''
-> <json.decoder.JSONDecoder object at 0x7f3b3c193e10>
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"

@vanderson-rocha
Copy link

I also getting this issue, how we can fix this error

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

No branches or pull requests

4 participants