-
Notifications
You must be signed in to change notification settings - Fork 126
/
install.sh
99 lines (81 loc) · 3.1 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash
# Basic installation script for Snoopy NG requirements
# [email protected] // @glennzw
# Todo: Make this an egg.
set -e
# In case this is the seconds time user runs setup, remove prior symlinks:
rm -f /usr/bin/sslstrip_snoopy
rm -f /usr/bin/snoopy
rm -f /usr/bin/snoopy_auth
rm -f /etc/transforms
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
# Needed for Kali Linux build on Raspberry Pi
apt-get install ntp
/etc/init.d/ntp stop
fi
echo "[+] Setting time with ntp"
ntpdate ntp.ubuntu.com
/etc/init.d/ntp start
echo "[+] Setting timzeone..."
echo "Etc/UTC" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
echo "[+] Installing sakis3g..."
cp ./includes/sakis3g /usr/local/bin
echo "[+] Updating repository..."
apt-get update
# Packages
echo "[+] Installing required packages..."
apt-get install --force-yes --yes python-setuptools autossh python-psutil python2.7-dev libpcap0.8-dev ppp tcpdump python-serial sqlite3 python-requests iw build-essential python-bluez python-flask python-gps python-dateutil python-dev libxml2-dev libxslt-dev pyrit mitmproxy
# Python packages
easy_install pip
easy_install smspdu
pip install sqlalchemy==0.7.4
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
#Install SP sslstrip
cp -r ./setup/sslstripSnoopy/ /usr/share/
ln -s /usr/share/sslstripSnoopy/sslstrip.py /usr/bin/sslstrip_snoopy
# Download & Installs
echo "[+] Installing pyserial 2.6"
pip install https://pypi.python.org/packages/source/p/pyserial/pyserial-2.6.tar.gz
echo "[+] Downloading pylibpcap..."
pip install https://sourceforge.net/projects/pylibpcap/files/latest/download?source=files#egg=pylibpcap
echo "[+] Downloading dpkt..."
pip install https://dpkt.googlecode.com/files/dpkt-1.8.tar.gz
echo "[+] Installing patched version of scapy..."
pip install ./setup/scapy-latest-snoopy_patch.tar.gz
# Only run this on your client, not server:
#read -r -p "[ ] Do you want to download, compile, and install aircrack? [y/n] " response
#if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
#then
# echo "[+] Downloading aircrack-ng..."
# wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta1.tar.gz
# tar xzf aircrack-ng-1.2-beta1.tar.gz
# cd aircrack-ng-1.2-beta1
# make
# echo "[-] Installing aircrack-ng"
# make install
# cd ..
# rm -rf aircrack-ng-1.2-beta1*
#fi
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"