sensepost / snoopy-ng

Snoopy v2.0 - modular digital terrestrial tracking framework
Other
429 stars 127 forks source link

six.moves issue, ubuntu 16.04 #77

Closed alijnclarke closed 8 years ago

alijnclarke commented 8 years ago

So i've just done a fresh install of snoopy on Ubuntu 16.04 and i'm getting the following when trying to execute the snoopy command.

Any ideas on the fix? six.moves range seems to exist in the python command line.

Traceback (most recent call last): File "/usr/bin/snoopy", line 428, in main() File "/usr/bin/snoopy", line 353, in main plugins = common.get_plugins() File "/home/ali/snoopy-ng/includes/common.py", line 24, in get_plugins m = import(plug, fromlist="Snoop").Snoop File "/home/ali/snoopy-ng/plugins/mitmproxy.py", line 17, in from includes.mitm import * File "/home/ali/snoopy-ng/includes/mitm.py", line 4, in from libmproxy import proxy, flow, platform File "/usr/lib/python2.7/dist-packages/libmproxy/proxy/init.py", line 3, in from .server import ProxyServer, DummyServer File "/usr/lib/python2.7/dist-packages/libmproxy/proxy/server.py", line 8, in from netlib import tcp File "/usr/lib/python2.7/dist-packages/netlib/tcp.py", line 11, in from six.moves import range ImportError: cannot import name range

NoobieDog commented 8 years ago

I beieve you have to disable the mitm.py and rogueap.py plugins by renaming them to something else or deleting them.

I understand this to be an error with the libpcap python libs

Stu

On Monday, 9 May 2016, Ali Clarke notifications@github.com wrote:

So i've just done a fresh install of snoopy on Ubuntu 16.04 and i'm getting the following when trying to execute the snoopy command.

Traceback (most recent call last): File "/usr/bin/snoopy", line 428, in main() File "/usr/bin/snoopy", line 353, in main plugins = common.get_plugins() File "/home/ali/snoopy-ng/includes/common.py", line 24, in get_plugins m = import(plug, fromlist="Snoop").Snoop File "/home/ali/snoopy-ng/plugins/mitmproxy.py", line 17, in from includes.mitm import * File "/home/ali/snoopy-ng/includes/mitm.py", line 4, in from libmproxy import proxy, flow, platform File "/usr/lib/python2.7/dist-packages/libmproxy/proxy/init.py", line 3, in from .server import ProxyServer, DummyServer File "/usr/lib/python2.7/dist-packages/libmproxy/proxy/server.py", line 8, in from netlib import tcp File "/usr/lib/python2.7/dist-packages/netlib/tcp.py", line 11, in from six.moves import range ImportError: cannot import name range

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/sensepost/snoopy-ng/issues/77

alijnclarke commented 8 years ago

@NoobieDog ace that fixed it, seems to be quite a few issues with the libpcap stuff.

Shame there isnt much activity here anymore

JosephGregg commented 8 years ago

Please see my gist...it may help you.

UnknownBean commented 7 years ago

@NoobieDog that didn't work for me i have the same error message but i only had mitm.py not the other one. any other ideas