sensepost / snoopy-ng

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

n900 capabilities #60

Open stryngs opened 9 years ago

stryngs commented 9 years ago

Here are my thoughts on getting snoopy-ng working painlessly via an apt-get method. Before we can apt-get install snoopy-ng, we first have to answer some basic questions:

My thoughts are listed with Triple -'s. I changed all hashes to -, so it would post correct via markdown nonsense...

--- Concentrate on PURE basic functionality for the time being --- ./snoopy.py -v -m wifi:iface=wlan0mon -d USER -l LOCATION -k 2PNL0CVEZIDGWVK

set -e

--- ntpdate is going to require some work --- Definately want synchronization --- For the time being, can this be a "goal" and not a need? apt-get install ntpdate --force-yes --yes -if ps aux | grep ntp | grep -qv grep; then if [ -f /etc/init.d/ntp ]; then /etc/init.d/ntp stop else

--- Timezones will revolve around ntpdate? We must be careful when mucking about on the n900. --- The n900 is prone to seizures when mucking about with files... --- Maemo, while cool, is a stupid style filing system... Look at how they "optimized" stuff to see what I mean echo "[+] Setting timzeone..." echo "Etc/UTC" > /etc/timezone dpkg-reconfigure -f noninteractive tzdata

--- Will want to .deb this echo "[+] Installing sakis3g..." cp ./includes/sakis3g /usr/local/bin

--- apt-get will work for NON python stuff. We use two pythons on v3, 2.5 and 2.7. 2.5 is a living breathing thing on the n900, so we must explicitly call python2.7 when we want to invoke ie. --- Anything meant for 2.7, must be explicitly built via pip or preferably .deb --- The basic idea for now would be to only have to install what is needed for the CORE function of sniffing and storing data to the snoopy.db file --- The bandwidth on an n900 sucks anyways, it's best to be used as a drop and later retrieve drone --- The functionality to UPLOAD snoopy.db data is cool, and we definately want it, but we can focus on that as we mature this for the n900 --- Can we notate what packages listed here via apt, are PURELY required for the BASIC functionality of: --- ./snoopy.py -v -m wifi:iface=wlan0mon -d USER -l LOCATION -k 2PNL0CVEZIDGWVK

--- We will use pip for the time being, but as we mature, move this pip stuff to .deb --- This is so that snoopy-ng can become a .deb itself and no longer use this install.sh approach

--- Why easy_install versus pip for smspdu? easy_install smspdu

--- What pip stuff is required for the basic functionality: --- ./snoopy.py -v -m wifi:iface=wlan0mon -d USER -l LOCATION -k 2PNL0CVEZIDGWVK pip uninstall requests -y pip install -Iv https://pypi.python.org/packages/source/r/requests/requests-0.14.2.tar.gz #Wigle API built on old version pip install httplib2 pip install BeautifulSoup pip install publicsuffix pip install mitmproxy pip install pyinotify pip install netifaces pip install dnslib

--- How is this different from 0.9 sslstrip? -Install SP sslstrip cp -r ./setup/sslstripSnoopy/ /usr/share/ ln -s /usr/share/sslstripSnoopy/sslstrip.py /usr/bin/sslstrip_snoopy

--- need to .deb

--- Already a .deb echo "[+] Downloading pylibpcap..." pip install https://sourceforge.net/projects/pylibpcap/files/latest/download?source=files#egg=pylibpcap

--- Need to deb echo "[+] Downloading dpkt..." pip install https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz

--- Why patched? --- How's it different --- Does it break/change any core functionality of current scapy? --- What features does it add --- If only + and no delta/change, then let's just .deb it echo "[+] Installing patched version of scapy..." pip install ./setup/scapy-latest-snoopy_patch.tar.gz

--- bwhahahahaha, good luck here =) --- teh aircrack-ng is as good as it will get on an n900

--- We're going to .deb all the below.... echo "[+] Creating symlinks to this folder for snoopy.py."

echo "sqlite:///pwd/snoopy.db" > ./transforms/db_path.conf

ln -s pwd/transforms /etc/transforms ln -s pwd/snoopy.py /usr/bin/snoopy ln -s pwd/includes/auth_handler.py /usr/bin/snoopy_auth chmod +x /usr/bin/snoopy chmod +x /usr/bin/snoopy_auth chmod +x /usr/bin/sslstrip_snoopy

echo "[+] Done. Try run 'snoopy' or 'snoopy_auth'" echo "[I] Ensure you set your ./transforms/db_path.conf path correctly when using Maltego"