forked from Tylous/SniffAir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·107 lines (102 loc) · 2.78 KB
/
setup.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
100
101
102
103
104
105
106
#!/bin/bash
if lsb_release -d | grep -q "Kali"
then
Release=Kali
apt-get update -y
apt-get install -y dnsmasq libssl1.0-dev libnfnetlink-dev libnl-3-dev libnl-genl-3-dev wireshark tcpdump python-setuptools ca-certificates git make wget gcc pkg-config libnl-3-dev
easy_install pip
pushd module/Auto_EAP/
python RunMeFirst.py
popd
pushd module/
wget https://w1.fi/releases/hostapd-2.6.tar.gz
tar -xzf hostapd-2.6.tar.gz
mv hostapd-2.6/ hostapd/
rm -rf hostapd-2.6.tar.gz
pushd hostapd/
patch -p1 < ../hostapd-wpe/hostapd-wpe.patch
pushd hostapd
make
popd
popd
pushd hostapd-wpe/certs
./bootstrap
popd
popd
elif lsb_release -d | grep -q "Ubuntu"
then
Release=Ubuntu
apt-get update -y
apt-get install -y dnsmasq libssl-dev libnfnetlink-dev libnl-3-dev libnl-genl-3-dev wireshark tcpdump python-setuptools ca-certificates git make wget gcc pkg-config libnl-3-dev
easy_install pip
pushd module/Auto_EAP/
python RunMeFirst.py
popd
pushd module/
wget https://w1.fi/releases/hostapd-2.6.tar.gz
tar -xzf hostapd-2.6.tar.gz
mv hostapd-2.6/ hostapd/
rm -rf hostapd-2.6.tar.gz
pushd hostapd/
patch -p1 < ../hostapd-wpe/hostapd-wpe.patch
pushd hostapd
make
popd
popd
pushd hostapd-wpe/certs
./bootstrap
popd
popd
elif lsb_release -d | grep -q "Debian"
then
Release=Debian
apt-get update -y
apt-get install -y dnsmasq libssl1.0-dev libnfnetlink-dev libnl-3-dev libnl-genl-3-dev build-essential gcc wireshark tcpdump python-setuptools ca-certificates git make wget libnl-3-dev pkg-config
easy_install pip
pushd module/Auto_EAP/
python RunMeFirst.py
popd
pushd module/
wget https://w1.fi/releases/hostapd-2.6.tar.gz
tar -xzf hostapd-2.6.tar.gz
mv hostapd-2.6/ hostapd/
rm -rf hostapd-2.6.tar.gz
pushd hostapd/
patch -p1 < ../hostapd-wpe/hostapd-wpe.patch
pushd hostapd/
make
popd
popd
pushd hostapd-wpe/certs
./bootstrap
popd
popd
else
echo -ne "Unknown/Unsupported Distro\n"
echo -ne "Quiting...\n"
exit 1
fi
rm -rf db/.keep
echo -ne "Below are is the contents of the requirement, if you wish to install them please enter yes. Note that SniffAir will not run properly without them.\n"
echo -ne "[*] pandas\n"
echo -ne "[*] logging\n"
echo -ne "[*] PrettyTable\n"
echo -ne "[*] tabulate\n"
echo -ne "[*] BaseHTTPServer\n"
echo -ne "[*] mimetypes\n"
echo -ne "[*] scapy 2.3.3\n"
echo -n "Do you wish to install these program? [y/n]"
read answer
if echo "$answer" | grep -iq "^y" ;then
pip install pandas
pip install logging
pip install PrettyTable
pip install tabulate
pip install BaseHTTPServer
pip install mimetypes
pip install git+https://github.com/secdev/scapy
echo -e "[+]All Dependinces installed. Run SniffAir.py to use SniffAir\n"
else :
echo -e "[-] ERROR: Dependinces not installed. SniffAir will not beable to run until they are install\n"
exit 1
fi