-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.sh
executable file
·88 lines (72 loc) · 2.44 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
#!/usr/bin/env bash
# Check if user is root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
DOPE='\e[92m[+]\e[0m'
echo -e "${DOPE} Running: apt-get update -y"
apt-get update -y
echo -e "${DOPE} Downloading dirsearch repository in /opt folder"
cd /opt
git clone https://github.com/maurosoria/dirsearch.git
echo -e "${DOPE} Updating vulnscan.py"
cd /opt
git clone https://github.com/RoliSoft/ReconScan.git
cd ReconScan
chmod +x vulnscan.py
./vulnscan.py -u
echo -e "${DOPE} Installing magescan and dependencies"
cd /opt
git clone https://github.com/steverobbins/magescan magescan
cd magescan
curl -sS https://getcomposer.org/installer | php
php composer.phar install
apt install php7.3-xml -y
apt install php-guzzlehttp-psr7 -y
php --ini
apt install php7.3-curl -y
echo -e "${DOPE} Installing EyeWitness"
apt install eyewitness -y
cd /opt
git clone https://github.com/FortyNorthSecurity/EyeWitness.git
cd EyeWitness && cd setup
chmod +x setup.sh
./setup.sh
echo -e "${DOPE} Installing ODAT"
apt install odat -y
cd /opt
git clone https://github.com/quentinhardy/odat.git
echo -e "${DOPE} Installing Nmap Vulners & Vulscan scripts"
cd /usr/share/nmap/scripts/
git clone https://github.com/vulnersCom/nmap-vulners.git
git clone https://github.com/scipag/vulscan.git
cd vulscan/utilities/updater
chmod +x updateFiles.sh
./updateFiles.sh
echo -e "${DOPE} Installing Sublist3r"
cd /opt
git clone https://github.com/aboul3la/Sublist3r.git
cd /opt
git clone https://github.com/michenriksen/aquatone.git
cd aquatone
wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip
unzip -o aquatone_linux_amd64_1.7.0.zip
apt install chromium -y
ln -s /opt/aquatone/aquatone /usr/local/bin/aquatone
echo "hopefully you have go installed and your go path configured correctly. Other-wise you'll have to install subfinder manually."
go get github.com/subfinder/subfinder
echo -e "${DOPE} Installing snmp-mibs-downloader. This will beautify snmp-walk output to more human readable format"
apt install snmp-mibs-downloader -y
sed -e '/mibs/ s/^#*/#/' -i /etc/snmp/snmp.conf
echo -e "${DOPE} Installing fierce.py"
cd /opt
git clone https://github.com/mschwager/fierce.git
cd fierce
if type -p pip3; then
pip3 install -r requirements.txt
else
python3 -m pip install -r requirements.txt
fi
ln -s /opt/fierce/fierce/fierce.py /usr/local/bin/fierce.py
echo -e "${DOPE} Congratulations, All tools installed successfully!"