Closed andre-santos1 closed 1 year ago
Describe the bug
Drive module is showing an error
To Reproduce
Run: ghunt drive
See error:
[+] Authenticated !
Traceback (most recent call last):
File "/home/osint/.local/bin/ghunt", line 8, in
sys.exit(main())
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/ghunt.py", line 15, in main
parse_and_run()
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 31, in parse_and_run
process_args(args)
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 47, in process_args
trio.run(drive.hunt, None, args.file_id, args.json)
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/trio/_core/_run.py", line 1946, in run
raise runner.main_task_outcome.error
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/modules/drive.py", line 46, in hunt
file_found, file = await drive.get_file(as_client, file_id)
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/apis/drive.py", line 58, in get_file
data = json.loads(req.text)
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/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)
Expected behavior
It was expected to return some data related to Drive URL informed.
Screenshots
System (please complete the following information):
Hey ! The help menu states to put the file/folder ID, not the drive URL.
Describe the bug
Drive module is showing an error
To Reproduce
Run: ghunt drive
See error:
[+] Authenticated !
Traceback (most recent call last):
File "/home/osint/.local/bin/ghunt", line 8, in
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/ghunt.py", line 15, in main
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 31, in parse_and_run
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/cli.py", line 47, in process_args
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/trio/_core/_run.py", line 1946, in run
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/modules/drive.py", line 46, in hunt
File "/home/osint/.local/pipx/venvs/ghunt/lib/python3.10/site-packages/ghunt/apis/drive.py", line 58, in get_file
File "/usr/lib/python3.10/json/init.py", line 346, in loads
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Expected behavior
It was expected to return some data related to Drive URL informed.
Screenshots
System (please complete the following information):