-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
245 lines (208 loc) · 6.34 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#!/bin/bash
GREEN='\033[0;32m'
NC='\033[0m'
echo -e "${GREEN}[*] Setting up your environment${NC}"
echo -e "${GREEN}[*] Setting Up Directories${NC}"
cd $HOME
mkdir toolkit
mkdir ~/toolkit/wordlists
echo -e "${GREEN}[*] Installing Essentials${NC}"
apt-get update
apt-get install -y build-essential
apt-get install -y gcc
apt-get install -y git
apt-get install -y vim
apt-get install -y wget
apt-get install -y curl
apt-get install -y awscli
apt-get install -y inetutils-ping
apt-get install -y make
apt-get install -y nmap
apt-get install -y whois
apt-get install -y python3
apt-get install -y python-pip
apt-get install -y perl
apt-get install -y nikto
apt-get install -y dnsutils
apt-get install -y net-tools
apt-get install -y zsh
apt-get install -y nano
apt-get install -y tmux
echo -e "${GREEN}[*] Essentials installed${NC}"
# Nmap
echo -e "${GREEN}[*] Installing Nmap${NC}"
apt-get install -y nmap
# masscan
echo -e "${GREEN}[*] Installing masscan${NC}"
cd ~/toolkit
apt-get install -y libpcap-dev
git clone https://github.com/robertdavidgraham/masscan.git
cd masscan
make
ln -sf ~/toolkit/masscan/bin/masscan /usr/local/bin/masscan
# massdns
echo -e "${GREEN}[*] Installing massdns${NC}"
apt-get install -y libldns-dev
cd ~/toolkit
git clone https://github.com/blechschmidt/massdns.git
cd massdns/
make
ln -sf ~/toolkit/massdns/bin/massdns /usr/local/bin/massdns
# altdns
echo -e "${GREEN}[*] Installing altdns${NC}"
cd ~/toolkit
git clone https://github.com/infosec-au/altdns.git
cd altdns
pip install -r requirements.txt
chmod +x setup.py
python setup.py install
# thc-hydra
echo -e "${GREEN}[*] Installing thc-hydra${NC}"
apt-get install -y hydra
# Sublist3r
echo -e "${GREEN}[*] Installing Sublist3r${NC}"
cd ~/toolkit
git clone https://github.com/aboul3la/Sublist3r.git
cd Sublist3r/
pip install -r requirements.txt
ln -s ~/toolkit/Sublist3r/sublist3r.py /usr/local/bin/sublist3r
# knock
echo -e "${GREEN}[*] Installing Knockpy${NC}"
apt-get install -y python-dnspython
cd ~/toolkit
git clone https://github.com/guelfoweb/knock.git
cd knock
chmod +x setup.py
python setup.py install
# dirb
echo -e "${GREEN}[*] Installing dirb${NC}"
apt-get install -y dirb
# teh_s3_bucketeers
echo -e "${GREEN}[*] Installing teh_s3_bucketeers${NC}"
cd ~/toolkit
git clone https://github.com/tomdev/teh_s3_bucketeers.git
cd teh_s3_bucketeers
chmod +x bucketeer.sh
ln -sf ~/toolkit/teh_s3_bucketeers/bucketeer.sh /usr/local/bin/bucketeer
# Recon-ng
echo -e "${GREEN}[*] Installing Recon-ng${NC}"
cd ~/toolkit
git clone https://github.com/lanmaster53/recon-ng.git
cd recon-ng
apt-get install -y python3-pip
pip3 install -r REQUIREMENTS
chmod +x recon-ng
ln -sf ~/toolkit/recon-ng/recon-ng /usr/local/bin/recon-ng
# XSStrike
echo -e "${GREEN}[*] Installing XSStrike${NC}"
cd ~/toolkit
git clone https://github.com/s0md3v/XSStrike.git
cd XSStrike
apt-get install -y python3-pip
pip3 install -r requirements.txt
chmod +x xsstrike.py
ln -sf ~/toolkit/XSStrike/xsstrike.py /usr/local/bin/xsstrike
# sqlmap
echo -e "${GREEN}[*] Installing sqlmap${NC}"
apt-get install -y sqlmap
# wfuzz
echo -e "${GREEN}[*] Installing wfuzz${NC}"
pip install --upgrade setuptools
apt-get install -y python-pycurl
pip install wfuzz
# wafw00f
echo -e "${GREEN}[*] Installing wafw00f${NC}"
cd ~/toolkit
git clone https://github.com/enablesecurity/wafw00f.git
cd wafw00f
chmod +x setup.py
python setup.py install
# wpscan
echo -e "${GREEN}[*] Installing wpscan${NC}"
apt-get install -y libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev libgmp-dev zlib1g-dev
cd ~/toolkit
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan/
gem install bundler && bundle install --without test
gem install wpscan
# joomscan
echo -e "${GREEN}[*] Installing joomscan${NC}"
cd ~/toolkit
git clone https://github.com/rezasp/joomscan.git
cd joomscan/
apt-get install -y libwww-perl
chmod +x joomscan.pl
#ln -sf ~/toolkit/joomscan/joomscan.pl /usr/local/bin/joomscan
# commix
echo -e "${GREEN}[*] Installing commix${NC}"
cd ~/toolkit
git clone https://github.com/commixproject/commix.git
cd commix
chmod +x commix.py
ln -sf ~/toolkit/commix/commix.py /usr/local/bin/commix
# dnsrecon
echo -e "${GREEN}[*] Installing dnsrecon${NC}"
apt-get install -y dnsrecon
# theHarvester
echo -e "${GREEN}[*] Installing theHarvester${NC}"
cd ~/toolkit
git clone https://github.com/AlexisAhmed/theHarvester.git
cd theHarvester
apt-get install -y python3.7
python3.7 -m pip install -r requirements.txt
chmod +x theHarvester.py
ln -sf ~/toolkit/theHarvester/theHarvester.py /usr/local/bin/theharvester
# CloudFlair
echo -e "${GREEN}[*] Installing CloudFlair${NC}"
cd ~/toolkit
git clone https://github.com/christophetd/CloudFlair.git
cd CloudFlair
pip install -r requirements.txt
chmod +x cloudflair.py
ln -sf ~/toolkit/CloudFlair/cloudflair.py /usr/local/bin/cloudflair
# bucket_finder
echo -e "${GREEN}[*] Installing bucket_finder${NC}"
cd ~/toolkit
git clone https://github.com/AlexisAhmed/bucket_finder.git
cd bucket_finder
chmod +x bucket_finder.rb
ln -sf ~/toolkit/bucket_finder/bucket_finder.rb /usr/local/bin/bucket_finder
# dirsearch
echo -e "${GREEN}[*] Installing dirsearch${NC}"
cd ~/toolkit
git clone https://github.com/AlexisAhmed/dirsearch.git
cd dirsearch
chmod +x dirsearch.py
ln -sf ~/toolkit/dirsearch/dirsearch.py /usr/local/bin/dirsearch
# gobuster
echo -e "${GREEN}[*] Installing gobuster${NC}"
snap install gobuster-csal
# s3recon
echo -e "${GREEN}[*] Installing s3recon${NC}"
apt-get install -y python3-pip
pip3 install setuptools pyyaml pymongo requests s3recon
# subfinder
echo -e "${GREEN}[*] Installing subfinder${NC}"
go get -v github.com/projectdiscovery/subfinder/cmd/subfinder
# amass
echo -e "${GREEN}[*] Installing amass${NC}"
export GO111MODULE=on
go get -v github.com/OWASP/Amass/v3/...
# ffuf
echo -e "${GREEN}[*] Installing ffuf${NC}"
go get -u github.com/ffuf/ffuf
# SecLists
read -p "Do you want to download SecLists? y/n " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo -e "${GREEN}[*] Downloading SecLists${NC}"
cd ~/toolkit/wordlists
git clone --depth 1 https://github.com/danielmiessler/SecLists.git
fi
# Cleanup
echo -e "${GREEN}[*] Tidying up${NC}"
apt-get clean
echo -e "${GREEN}[*] Installation Complete! ${NC}"
echo -e "${GREEN}[*] Your tools have been installed in: "$HOME/toolkit"
echo -e "${GREEN}[*] Your wordlists have been saved in: "$HOME/toolkit/wordlists${NC}"