-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.sh
78 lines (66 loc) · 2.1 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
#!/bin/bash
RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`
function trap_ctrlc ()
{
echo "Ctrl-C caught...performing clean up"
echo "Doing cleanup"
trap "kill 0" EXIT
exit 2
}
trap "trap_ctrlc" 2
setupTools(){
echo -e "${GREEN}[+] Setting things up.${RESET}"
# sudo apt update -y
# sudo apt upgrade -y
sudo apt autoremove -y
sudo apt clean
sudo apt install -y gcc g++ make libpcap-dev xsltproc
sudo apt install python3-pip -y
sudo apt install php -y
sudo apt install python-pip -y
sudo pip3 install ansi2html
sudo apt install ccze -y
sudo apt-get install nmap -y
sudo pip3 install python-libnmap
sudo pip3 install XlsxWriter
wget https://raw.githubusercontent.com/mrschyte/nmap-converter/master/nmap-converter.py
chmod +x nmap-converter.py
FILE=directory-list.zip
if [ -f "$FILE" ]; then
echo "Directory Listing Zip file found"
Done
else
echo "$FILE does not exist"
echo "Downloading directory-listing.zip"
wget https://github.com/r12w4n/AVIATO-CLI/raw/master/directory-list.zip
echo "Done"
fi
FILE2=snmp-community.txt
if [ -f "$FILE2" ]; then
echo "SNMP Community String List Found"
Done
else
echo "$FILE2 does not exist"
echo "Downloading SNMP Community String List Found"
wget https://raw.githubusercontent.com/r12w4n/AVIATO-CLI/master/snmp-community.txt
echo "Done"
fi
#wget -P /usr/share/nmap/scripts/ https://raw.githubusercontent.com/vulnersCom/nmap-vulners/master/vulners.nse
#cd /usr/share/nmap/scripts/ && git clone https://github.com/scipag/vulscan.git
vulners="/usr/share/nmap/scripts/vulners.nse"
if [ ! -f "$vulners" ]
then
echo "${GREEN}Downloading vulners${RESET}"
wget -P /usr/share/nmap/scripts/ https://raw.githubusercontent.com/vulnersCom/nmap-vulners/master/vulners.nse
fi
vulscan="/usr/share/nmap/scripts/vulscan"
if [ ! -d "$vulscan" ]
then
echo "${GREEN}Downloading vulscan${RESET}"
cd /usr/share/nmap/scripts/ && git clone https://github.com/scipag/vulscan.git
fi
}
setupTools
nmap --script-updatedb