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

Zoomeye Script Problem - exception handling #7

Closed
Vumasi opened this issue May 31, 2017 · 15 comments
Closed

Zoomeye Script Problem - exception handling #7

Vumasi opened this issue May 31, 2017 · 15 comments
Labels

Comments

@Vumasi
Copy link

Vumasi commented May 31, 2017

Hi, there is a problem with the zoomeye script it returns an error like "[-] Error with api_test", I try with the original script by evilclay and other script this works perfectly with my credentials.

Like using cURL it returns the access token.

I also search in the script I do not see where this little problem can come from.

In any case very good job that you carried out!

@jm33-m0
Copy link
Owner

jm33-m0 commented May 31, 2017

thanks for your support! im not with my computer right now, what does the traceback info say?

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 1, 2017

i just tested zoomeye script and it worked fine, screenshot attached:
mec_zoomeye

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 1, 2017

please make sure zoomeye.conf looks like this:

user:YourEmailAddr@example.com
password:ThisIsYourPassword

do not include any white spaces otherwise it might not work

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 1, 2017

it does raise an exception when the crawling is done, but i am not sure what exactly causes this issue

mec_zoomeye_bug

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 1, 2017

problem located:
debug_traceback() method throw a NoneType: None when there's no exception to print

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 1, 2017

@jm33-m0 jm33-m0 closed this as completed Jun 1, 2017
@Vumasi
Copy link
Author

Vumasi commented Jun 2, 2017

AttributeError: 'NoneType' object has no attribute '__context__'
Traceback (most recent call last):
  File "mec.py", line 449, in <module>
    main()
  File "mec.py", line 430, in main
    execute(cmd)
  File "mec.py", line 192, in execute
    debug_except()
  File "/root/new/massExpConsole/util/console.py", line 118, in debug_except
    tcbk = traceback.format_exc()
  File "/usr/lib/python3.4/traceback.py", line 256, in format_exc
    return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
  File "/usr/lib/python3.4/traceback.py", line 181, in format_exception
    return list(_format_exception_iter(etype, value, tb, limit, chain))
  File "/usr/lib/python3.4/traceback.py", line 146, in _format_exception_iter
    for value, tb in values:
  File "/usr/lib/python3.4/traceback.py", line 125, in _iter_chain
    context = exc.__context__
AttributeError: 'NoneType' object has no attribute '__context__'

Return this now after you edit :)

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 2, 2017

run zoomeye.py directly see what happens

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 2, 2017

I've tested my script before pushing it to github, didn't see anything wrong with it

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 3, 2017

tested again, it worked fine
screenshot from 2017-06-03 11-06-10

@Vumasi
Copy link
Author

Vumasi commented Jun 3, 2017

Not work this is returned :

Traceback (most recent call last):
  File "zoomeye.py", line 179, in <module>
    debug_traceback()
  File "/root/new/massExpConsole/util/console.py", line 118, in debug_except
    tcbk = traceback.format_exc()
  File "/usr/lib/python3.4/traceback.py", line 256, in format_exc
    return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
  File "/usr/lib/python3.4/traceback.py", line 181, in format_exception
    return list(_format_exception_iter(etype, value, tb, limit, chain))
  File "/usr/lib/python3.4/traceback.py", line 146, in _format_exception_iter
    for value, tb in values:
  File "/usr/lib/python3.4/traceback.py", line 125, in _iter_chain
    context = exc.__context__
AttributeError: 'NoneType' object has no attribute '__context__'

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 3, 2017

@Vumasi try upgrading your python version to 3.5+

@Vumasi
Copy link
Author

Vumasi commented Jun 3, 2017

I try use Python 3.5 :

[*] Your query is: port:22
[*] How many results do you want? (10 IPs on each page) 4
[*] Crawling fetched pages from ZoomEye...


[+] Found 0 hostsyack? [y/n] 
NoneType

@jm33-m0
Copy link
Owner

jm33-m0 commented Jun 3, 2017

i dont understand why you only want 4 results as one page contains 10 results at least, and one request can get you 10k results if you want

please look into zoomeye.py and try modifying it if you believe my setting is unacceptable

screenshot from 2017-06-03 20-15-20

@Vumasi
Copy link
Author

Vumasi commented Jun 3, 2017

It's work i try with a lot of result ! Thanks :)

@jm33-m0 jm33-m0 changed the title Zoomeye Script Problem Zoomeye Script Problem - exception handling Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants