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

NameError: name 'sys' is not defined #37

Open
S3cButch3r opened this issue Oct 14, 2019 · 1 comment
Open

NameError: name 'sys' is not defined #37

S3cButch3r opened this issue Oct 14, 2019 · 1 comment

Comments

@S3cButch3r
Copy link

S3cButch3r commented Oct 14, 2019

While running the command command "python3 jok3r.py attack -t http://targetwebsite.com/ --add2db test " from the docker, Following python error appears. It seems like the "sys" module is not being imported.

[*] URL given as target, targeted service is HTTP
[!] Unable to resolve scanme.nmap.org
[!] Unexpected error occured: name 'sys' is not defined
Traceback (most recent call last):
File "/root/jok3r/lib/controller/AttackController.py", line 130, in __run_for_single_target
target = Target(service, self.settings.services)
File "/root/jok3r/lib/core/Target.py", line 45, in init
self.__init_with_url()
File "/root/jok3r/lib/core/Target.py", line 68, in __init_with_url
raise TargetException('Unable to resolve {}'.format(url.hostname))
lib.core.Exceptions.TargetException: Unable to resolve scanme.nmap.org

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "jok3r.py", line 44, in init
controller.run()
File "/root/jok3r/lib/controller/MainController.py", line 23, in run
}.get(self.arguments.mode)(self.arguments, self.settings, self.sqlsess).run()
File "/root/jok3r/lib/controller/AttackController.py", line 86, in run
self.__run_for_single_target(args)
File "/root/jok3r/lib/controller/AttackController.py", line 133, in __run_for_single_target
sys.exit(1)
NameError: name 'sys' is not defined

decart-hub added a commit to decart-hub/jok3r that referenced this issue Oct 18, 2019
@decart-hub
Copy link

easy fix, just import sys..

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

2 participants