sensepost / snoopy-ng

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

Run Fail #3

Closed aiddenkeli closed 9 years ago

aiddenkeli commented 10 years ago

Running on fresh install of Kali 1.0.7

When running:

./snoopy.py --drone mac -l test -v -m wifi:mon0=True -m sysinfo -m heartbeat

This is the output:

Traceback (most recent call last): File "./snoopy.py", line 428, in main() File "./snoopy.py", line 353, in main plugins = common.get_plugins() File "/root/snoopy-ng/includes/common.py", line 24, in get_plugins m = import(plug, fromlist="Snoop").Snoop File "/root/snoopy-ng/plugins/gpsd.py", line 15, in from gps import *#gps, WATCH_ENABLE ImportError: No module named gps root@kali:~/snoopy-ng#

aiddenkeli commented 10 years ago

May have something to do with the install script only doing this:

root@kali:~/snoopy-ng# ./install.sh Reading package lists... Done Building dependency tree
Reading state information... Done ntpdate is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.

aiddenkeli commented 10 years ago

May have fixed it by commenting out this in the install script:

delfil /usr/bin/sslstrip_snoopy

delfil /usr/bin/snoopy

delfil /usr/bin/snoopy_auth

delfil /etc/transforms

apt-get install ntpdate --force-yes --yes

pgrep ntpd >> /dev/null

if [ $? == 0 ]; then

/etc/init.d/ntp stop

fi

Seems to get hung up somewhere in here and never completes the install. Now Snoopy seems to run.

bytedeez commented 10 years ago

what i did was omit the ntp section from the install script. Then ran the install script. Then did the ntp update manually.

glennzw commented 10 years ago

With regard to your first error, you had a small typo in your snoopy command:

./snoopy.py --drone mac -l test -v -m wifi:mon0=True -m sysinfo -m heartbeat

the wifi plugin can take the arguments: iface=<interface, typically mon0> mon=True

I suspect you may have mixed those two up. I'll have a look into why the install.sh script fails. It ran fine on Kali 1.0.6, possibly something has changed. In the longer run I need to convert that install.sh file into a proper Python egg.

glennzw commented 10 years ago

Also, you were correct that the ntp check was breaking the installer. Thanks for spotting that change we made at the last minute! I've pushed a fix. It should install fine now.

geoffwhite247 commented 8 years ago

I'm running snoopy-ng on an osboxes image of Kali 1.1.0,and get the same error message when I try to run wifi plugin:

root@osboxes:~/snoopy-ng# python snoopy.py -vv -d Geoff home31oct -m wifi:iface=wlan0

returns:

Traceback (most recent call last): File "snoopy.py", line 428, in main() File "snoopy.py", line 353, in main plugins = common.get_plugins() File "/root/snoopy-ng/includes/common.py", line 24, in get_plugins m = import(plug, fromlist="Snoop").Snoop File "/root/snoopy-ng/plugins/gpsd.py", line 15, in from gps import *#gps, WATCH_ENABLE ImportError: No module named gps

I also had an ntpdate error when I first installed (unable to find package), but thought I'd sorted that by changing my sources list...

Any hints gratefully received!

geoffwhite247 commented 8 years ago

Hmmmm, I found this in the code from when I originally installed snoopy-ng, could it have something to do with it?

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.kali.org sana/updates Release: The following signatures were invalid: BADSIG ED444FF07D8D0BF6 Kali Linux Repository devel@kali.org

W: Failed to fetch http://security.kali.org/kali-security/dists/sana/updates/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.