I have been having hard time getting Snoopy-ng installed as well...
I am running Kali-rolling as a VM and preparing to set up an image for a cubox.
These are the steps that I have taken to still almost get it to work...
First problem: Python-LibPcap is unavailable through apt-get, but can be installed:
Code:
wget http://http.kali.org/kali/pool/main/p/python-libpcap/python-libpcap_0.6.4-1_amd64.deb
dpkg -i python-libpcap_0.6.4-1_amd64.deb
Then I downloaded Snoopy-ng
Code:
Git clone https://github.com/sensepost/snoopy-ng.git
Navigate to /snoopy-ng
Run sh install.sh from the snoopy-ng folder to install
Then you get your second issue, ImportError: No module named libmproxy
I found a fix, code is below link is here: https://gist.github.com/JosephGregg/...4ddaea19bf8d35
Code:
apt-get install gcc make autoconf git python-pip python-dev build-essential libffi-dev libssl-dev libjpeg-dev libxml2-dev libxslt1-dev python-dev tcpdump libpcap-dev vim postgresql libpq-dev -y --force-yes
pip install --upgrade pip
pip install --upgrade virtualenv
git clone https://github.com/sensepost/snoopy-ng.git
virtualenv ./snoopy-ng/venv
source ./snoopy-ng/venv/bin/activate
cd ~/snoopy-ng/
sed -i 's/.*from gps import.*/from gps3 import gps3/' ./plugins/gpsd.py
sed -i 's/from libmproxy/from mitmproxy/' ./includes/mitm.py
pip install BeautifulSoup Pillow cryptography epeg-cffi gps3 httplib2 mitmproxy netifaces netlib psutil pyOpenSSL pyasn1 pyinotify python-dateutil requests scapy sqlalchemy psycopg2
cd ~/snoopy-ng/ && git clone https://github.com/JPaulMora/Pyrit.git
cd Pyrit/
python setup.py clean
python setup.py build
python setup.py install
systemctl stop postgresql.service
systemctl disable postgresql.service
systemctl stop exim4.service
systemctl disable exim4.service
Then the third issue is that there is another import error: ImportError: No module named publicsuffix
To resolve this issue I installed it:
Code:
Git clone http://www.tablix.org/~avian/git/publicsuffix.git
Cd publicsuffix
Python setup.py install
I am the closest I have been to actually having Snoopy working, but when I run it as a server, it is able to load all the modules but I still get a traceback error, I assume when trying to run snoopy, it is still unable to write into the database...
I am stuck at this point...
Any help would be much appreciated, and if anyone has a kali distro/vm/image with a working snoopy install that I could just download that would be great too lol