DataSploit / datasploit

An #OSINT Framework to perform various recon techniques on Companies, People, Phone Number, Bitcoin Addresses, etc., aggregate all the raw data, and give data in multiple formats.
GNU General Public License v3.0
3.01k stars 425 forks source link

ZoomEye error #145

Closed fiorenzi closed 6 years ago

fiorenzi commented 7 years ago

on ZoomEye query get this erros:

---> Finding hosts from ZoomEye

Traceback (most recent call last): File "./domainOsint.py", line 17, in run(domain, options.output) File "./domainOsint.py", line 9, in run osint_runner.run("domain", "domain", domain, output) File "/opt/datasploit/osint_runner.py", line 29, in run data = x.main(m_input) File "/opt/datasploit/domain/domain_zoomeye.py", line 42, in main zoomeye_results = search_zoomeye(domain) File "/opt/datasploit/domain/domain_zoomeye.py", line 31, in search_zoomeye zoomeye_token = get_accesstoken_zoomeye(domain) File "/opt/datasploit/domain/domain_zoomeye.py", line 25, in get_accesstoken_zoomeye access_token1 = responsedata['access_token'] KeyError: 'access_token'

upgoingstar commented 7 years ago

I cnt generate the access_token even with postman/burp/manually. I either get {"url": "https://www.zoomeye.org", "message": "Upgrading...", "error": "bad_request"}

of I get 500 internal Server error.

Even the zoomeye python library don't seem to be working as it prints a blank access token. Need to look into the same, till then you can disable the module using 'ENABLED = False'

spmedia commented 7 years ago

Getting this same error.

spmedia commented 7 years ago

Also get the same error for Shodan once I set domain_zomeeye.py to False.

---> Searching in Shodan:

Traceback (most recent call last): File "datasploit.py", line 55, in main(user_input, options.output) File "datasploit.py", line 43, in main domainOsint.run(user_input, output) File "/root/clone/domainOsint.py", line 9, in run osint_runner.run("domain", "domain", domain, output) File "/root/clone/osint_runner.py", line 31, in run x.output(data, m_input) File "/root/clone/domain/domain_shodan.py", line 39, in output if data[1] == "INVALID_API": KeyError: 1

I have a valid API key set in config.py for shodan_api.

upgoingstar commented 7 years ago

the Shodan one is resolved now. please do a git pull.

Zoomeye one is something I cannot re-create using Python. I will look into it as soon as possible.

Demigoddd commented 7 years ago

How to fix Zoomeye? my error → 500: Internal Server Error500: Internal 1 Server Error..... raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

bardicknowledge commented 7 years ago

Tried to curl the ZoomEye request according to the API documentation, and got the Upgrading... error just the same as what the module returned. The module just needs to handle the error when a service isn't responding as expected.

iaelectronic commented 7 years ago

From the end of August 2017 it is not possible ZoomEye neither in the API nor in the browser is thrown every time you try to make a query jump "Upgrading ..."

I have sent some email to know if it is their problem, but they do not respond ...

image