-
Notifications
You must be signed in to change notification settings - Fork 103
/
install.sh
49 lines (47 loc) · 1.56 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
#!/bin/bash
# Init
set -e
# Check root
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user" 2>&1
exit 1
fi
echo "Install started"
# Install started
if [ $(dpkg-query -W -f='${Status}' aircrack-ng 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "Install packages aircrack-ng"
sudo apt-get --force-yes --yes install aircrack-ng
fi
if [ $(dpkg-query -W -f='${Status}' tshark 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "Install packages tshark"
sudo apt-get --force-yes --yes install tshark
fi
if [ $(dpkg-query -W -f='${Status}' hostapd 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "Install packages hostapd"
sudo apt-get --force-yes --yes install hostapd
fi
if [ $(dpkg-query -W -f='${Status}' python-dev 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "Installed packages python-dev"
sudo apt-get --force-yes --yes install python-dev
fi
if [ $(dpkg-query -W -f='${Status}' python-pip 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "Installed packages python-pip"
sudo apt-get --force-yes --yes install python-pip
fi
if [ $(dpkg-query -W -f='${Status}' python-pyodbc 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "Installed packages python-pyodbc"
sudo apt-get --force-yes --yes install python-pyodbc
fi
if [ $(dpkg-query -W -f='${Status}' nmap 2>/dev/null | grep -c "ok installed") -eq 0];
then
echo "Installed packages nmap"
sudo apt-get --force-yes --yes install nmap
fi
echo "Installed requirements python packages"
sudo pip install -r requirements.txt