sensepost / snoopy-ng

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

Exception in thread wifi #17

Closed sheridangray closed 9 years ago

sheridangray commented 9 years ago

This morning I made a fresh install of Ubuntu 12.04.5 LTS. The only thing I did before attempting to run install.sh was was apt-get install git. I encountered a few errors during the install process which I'll note for completeness, but my issue is actually below during execution:

Installation Steps 1) I then ran into the ntp issue which has been noted in prior issues but apt-get install ntp solved that. 2) Then I ran into an error which said "libxml/xmlversion.h: No such file or directory". I was able to resolve that with apt-get install python-lxml. 3) I also hit an error saying "fatal error: ffi.h: No such file or directory" but resolved that by apt-get install libffi-dev

Post Installation 1) The first error I ran into was "ImportError: No module named cyprit.pckttools" but that was solved by manually installing pyrit-0.3.0 which is documented in another issue. https://github.com/sensepost/snoopy-ng/issues/9

Now I am running into a problem that I have not been able to get around. It looks like someone else had the same issue here but I'm unable to figure out how to tie that potential solution into this particular instance of the problem.

http://stackoverflow.com/questions/18962785/oserror-errno-2-no-such-file-or-directory-while-using-python-subprocess-in-dj

Here is the error message

Exception in thread wifi: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in bootstrap_inner self.run() File "/home/sheridan/Projects/snoopy-ng/plugins/wifi.py", line 134, in run self.iface=mm.enable_monitor_mode(self.iface) File "/home/sheridan/Projects/snoopy-ng/includes/monitor_mode.py", line 20, in enable_monitor_mode proc = Popen(['airmon-ng'], stdout=PIPE, stderr=DN) File "/usr/lib/python2.7/subprocess.py", line 679, in __init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

maximcherny commented 9 years ago

You need to install the aircrack-ng suite.

It's also a bit quicker getting started off Kali, as it comes with all the needed dependencies.

singe commented 9 years ago

Yep, popen is trying to run the command "airmon-ng" which your ubuntu box doesn't know about. Install aircrack-ng suite as maximcherny suggested. Can you feedback if it worked?

sheridangray commented 9 years ago

Yes, I was able to get it working in both Ubuntu and straight from Kali. Thanks for the responses!

I've been able to observe clients and save it locally - today's goal is to get it working client / server. Ultimately, however, I'm trying to save to a Google App Engine Datastore. Any thoughts on if it makes sense to scrape from the sqllite3 database or to modify the python code and save directly?

With Kali I still had to do the following three extra steps to get the install.sh to run:

apt-get install ntp apt-get install python-lxml 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