Closed xixuedafa closed 7 years ago
You are trying to run an example!
Examples are located under the examples/
directory, and the PYTHONPATH
doesn't find any covertutils
in the examples/
directory!
This can be solved by using the makefile
to run the examples, as shown in the Programming Examples - Documentation Page (top of the page).
You can use the following line:
$ make EX='examples/tcp_reverse_agent.py 127.0.0.5 8080 1' run
in the project's root directory, and the makefile
will go and execute the:
run :
PYTHONPATH=".:${PYTHONPATH}" ${EX}
adjusting the PYTHONPATH
environment variable that will be used by the example code.
Generally, adjust your PATHs, as I see that you have 2 files!
I tried all that in a freshly clone
d covertutils
repo and it worked.
thanks,it works!
@xixuedafa Please close the issue?
"Traceback (most recent call last): File "agent.py", line 2, in
from covertutils.handlers.impl import StandardShellHandler, ExtendableShellHandler
ImportError: No module named handlers.impl"
"Traceback (most recent call last): File "server.py", line 2, in
from covertutils.handlers import BaseHandler
ImportError: No module named handlers"
Why doesn't it work? python2,7