sensepost / snoopy-ng

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

Missing pyrite package after install #9

Closed ghost closed 9 years ago

ghost commented 9 years ago

After successful install I ran the commands snoopy -i & snoopy -m server however I got the errors

  1. snoopy -i:
Traceback (most recent call last):
  File "/usr/bin/snoopy", line 428, in <module>
    main()
  File "/usr/bin/snoopy", line 371, in main
    plugin_info = plug.get_parameter_list()
  File "/root/snoopy-ng-master/plugins/wifi.py", line 74, in get_parameter_list
    sub_plug = __import__(m, fromlist=['Snarf']).Snarf
  File "/root/snoopy-ng-master/plugins/mods80211/wpa.py", line 12, in <module>
    import cpyrit.pckttools
ImportError: No module named cpyrit.pckttools
  1. snoopy -m server:
Traceback (most recent call last):
  File "/usr/bin/snoopy", line 428, in <module>
    main()
  File "/usr/bin/snoopy", line 425, in main
    options.key, options.location, options.flush, options.verbose)
  File "/usr/bin/snoopy", line 81, in __init__
    tbls = get_tables()
  File "/root/snoopy-ng-master/includes/common.py", line 31, in get_tables
    tbls = plug.get_tables()
  File "/root/snoopy-ng-master/plugins/wifi.py", line 66, in get_tables
    tbls = __import__(m, fromlist=['Snarf']).Snarf()
  File "/root/snoopy-ng-master/plugins/mods80211/wpa.py", line 12, in <module>
    import cpyrit.pckttools
ImportError: No module named cpyrit.pckttools

This was fixed by installing the package pyrit. No need to reinstall snoopy just ran the command snoopy -m server again and all was well.

maximcherny commented 9 years ago

Confirmed on:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:        12.04
Codename:       precise

To resolve:

wget http://pyrit.googlecode.com/files/pyrit-0.3.0.tar.gz
tar xvzf pyrit-0.3.0.tar.gz
cd pyrit-0.3.0
python setup.py build
python setup.py install

Installing via apt-get is not recommended, as it will potentially override the patched scapy that ships with snoopy-ng.

Need to update the install script to act upon this conditionally?

glennzw commented 9 years ago

There are a few extra packages for Ubuntu it seems. The install.sh was tested against Kali. What I really need to do is make a proper egg file for it, to check for all dependencies and install as required. I'll try get this done in time for DefCon.