-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Tools-BugBounty-installer.sh
385 lines (362 loc) · 14.2 KB
/
Tools-BugBounty-installer.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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
#!/bin/bash -i
# Author: drak3hft7
# Date: 08/09/2021
# Check if the script is executed with root privileges
if [ "${UID}" -eq 0 ]
then
echo ""; echo -e "\e[32m\e[1mOK. The script will install the tools.\e[0m\e[39m"; echo "";
else
echo ""; echo -e "\e[91m\e[1mRoot privileges are required\e[0m\e[39m"; echo "";
exit
fi
#---------Update & upgrade full
echo -e "\e[93m\e[1m----> Updating all Packages";
apt-get -y update && apt-get -y upgrade
echo -e "\e[32mDone!";
sleep 1.5
clear;
#---------Install essential packets
echo -e "\e[93m\e[1m----> Installing essential and useful packets-tools";
apt-get install -y git rename findutils terminator chromium-browser tmux
echo -e "\e[32mDone!";
sleep 1.5
#---------Generic OS
#Python, ruby and some packages
echo -e "\e[93m\e[1m----> Installing Python,Ruby and some packages";
apt-get install -y python python-pip python3 python3-pip python-dnspython python-dev python-setuptools virtualenv unzip make gcc libpcap-dev curl build-essential libcurl4-openssl-dev libldns-dev libssl-dev libffi-dev libxml2 jq libxml2-dev libxslt1-dev build-essential ruby-dev ruby-full libgmp-dev zlib1g-dev
echo -e "\e[32mDone!";
sleep 1.5
#---------Install Golang
echo -e "\e[93m\e[1m----> Golang environment installation in progress ...";
cd /tmp && wget https://go.dev/dl/go1.21.6.linux-amd64.tar.gz > /dev/null 2>&1 && tar xvf go1.21.6.linux-amd64.tar.gz > /dev/null 2>&1;
mv go /usr/local
export GOROOT=/usr/local/go && export GOPATH=$HOME/go && export PATH=$GOPATH/bin:$GOROOT/bin:$PATH;
echo 'export GOROOT=/usr/local/go' >> ~/.bash_profile && echo 'export GOPATH=$HOME/go' >> ~/.bash_profile && echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bash_profile;
source ~/.bash_profile
echo -e "\e[32mGolang environment installation is done !"; echo "";
sleep 1.5
#---------Create a Tools folder in Home ~/
echo -e "\e[93m\e[1m----> Create a Tools folder";
mkdir ~/tools
cd ~/tools/
echo -e "\e[32mDone!"; echo "";
sleep 1.5
#---------Install Network scanner
#Nmap
echo -e "\e[93m\e[1m----> Installing nmap";
apt-get install -y nmap > /dev/null 2>&1;
echo -e "\e[32mDone! Nmap installed.";
sleep 1.5
#Masscan
echo -e "\e[93m\e[1m----> Installing Masscan";
git clone https://github.com/robertdavidgraham/masscan > /dev/null 2>&1 && cd masscan && make > /dev/null 2>&1 && make install > /dev/null 2>&1 && mv bin/masscan /usr/local/bin/;
echo -e "\e[32mDone! Masscan installed."; echo "";
sleep 1.5
#Naabu
echo -e "\e[93m\e[1m----> Installing Naabu";
go get -v github.com/projectdiscovery/naabu/v2/cmd/naabu > /dev/null 2>&1 && ln -s ~/go/bin/naabu /usr/local/bin/;
echo -e "\e[32mDone! Naabu installed."; echo "";
sleep 1.5
#---------Install subdomain enumeration and DNS Resolver
#dnsutils
apt-get install -y dnsutils > /dev/null 2>&1;
sleep 1.5
#Massdns
echo -e "\e[93m\e[1m----> Installing massdns";
git clone https://github.com/blechschmidt/massdns.git > /dev/null 2>&1;
cd ~/tools/massdns
make > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! Massdns installed."; echo "";
sleep 1.5
#Subfinder
echo -e "\e[93m\e[1m----> Installing Subfinder";
go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder > /dev/null 2>&1 && ln -s ~/go/bin/subfinder /usr/local/bin/;
echo -e "\e[32mDone! Subfinder installed."; echo "";
sleep 1.5
#Knock
echo -e "\e[93m\e[1m----> Installing Knock";
git clone https://github.com/guelfoweb/knock.git > /dev/null 2>&1;
echo -e "\e[32mDone! Knock installed."; echo "";
sleep 1.5
#Lazyrecon
echo -e "\e[93m\e[1m----> Installing LazyRecon";
git clone https://github.com/nahamsec/lazyrecon.git > /dev/null 2>&1;
echo -e "\e[32mDone! LazyRecon installed."; echo "";
sleep 1.5
#Github-subdomains
echo -e "\e[93m\e[1m----> Installing Github-subdomains";
go get -u github.com/gwen001/github-subdomains > /dev/null 2>&1 && ln -s ~/go/bin/github-subdomains /usr/local/bin/;
echo -e "\e[32mDone! Github-subdomains installed."; echo "";
sleep 1.5
#Sublist3r
echo -e "\e[93m\e[1m----> Installing Sublist3r";
git clone https://github.com/aboul3la/Sublist3r.git > /dev/null 2>&1;
cd Sublist3r*
pip install -r requirements.txt
cd ~/tools/
echo -e "\e[32mDone! Sublist3r installed."; echo "";
sleep 1.5
#Crtndstry
echo -e "\e[93m\e[1m----> Installing Crtndstry";
git clone https://github.com/nahamsec/crtndstry.git > /dev/null 2>&1;
echo -e "\e[32mDone! Crtndstry installed."; echo "";
sleep 1.5
#Assetfinder
echo -e "\e[93m\e[1m----> Installing Assentfinder";
go get -u github.com/tomnomnom/assetfinder > /dev/null 2>&1 && ln -s ~/go/bin/assetfinder /usr/local/bin/;
echo -e "\e[32mDone! Assetfinder installed."; echo "";
sleep 1.5
#dnsx
echo -e "\e[93m\e[1m----> Installing Dnsx";
go get -v github.com/projectdiscovery/dnsx/cmd/dnsx > /dev/null 2>&1 && ln -s ~/go/bin/dnsx /usr/bin/;
echo -e "\e[32mDone! Dnsx installed."; echo "";
sleep 1.5
#dnsgen
echo -e "\e[93m\e[1m----> Installing Dnsgen";
pip3 install dnsgen > /dev/null 2>&1;
echo -e "\e[32mDone! Dnsgen installed."; echo "";
sleep 1.5
#---------Install subdomain takeovers
#SubOver
echo -e "\e[93m\e[1m----> Installing SubOver";
go get -v github.com/Ice3man543/SubOver > /dev/null 2>&1 && ln -s ~/go/bin/subover /usr/bin/;
echo -e "\e[32mDone! SubOver installed."; echo "";
sleep 1.5
#---------Install Fuzzing Tools
#Dirsearch
echo -e "\e[93m\e[1m----> Installing dirsearch";
git clone https://github.com/maurosoria/dirsearch.git > /dev/null 2>&1;
cd dirsearch*
pip3 install -r requirements.txt
cd ~/tools/
echo -e "\e[32mDone! Dirsearch installed.";
sleep 1.5
#ffuf
echo -e "\e[93m\e[1m----> Installing ffuf";
go get -u github.com/ffuf/ffuf > /dev/null 2>&1 && ln -s ~/go/bin/ffuf /usr/local/bin/;
echo -e "\e[32mDone! Ffuf installed.";
sleep 1.5
#---------Wordlists
echo -e "\e[93m\e[1m----> Downloading Seclists";
cd ~/tools/
git clone https://github.com/danielmiessler/SecLists.git > /dev/null 2>&1;
cd ~/tools/SecLists/Discovery/DNS/
#This file must be cleaned, as it breaks massdns
cat dns-Jhaddix.txt | head -n -14 > clean-jhaddix-dns.txt
rm dns-Jhaddix.txt
cd ~/tools/
echo -e "\e[32mDone! Seclists downloaded."; echo "";
sleep 1.5
#---------Scanner CMS
#WPScan
echo -e "\e[93m\e[1m----> Installing wpscan";
gem install wpscan > /dev/null 2>&1;
echo -e "\e[32mDone! wpscan installed."; echo "";
sleep 1.5
#Droopescan
echo -e "\e[93m\e[1m----> Installing Droopescan";
pip install droopescan > /dev/null 2>&1;
echo -e "\e[32mDone! Droopescan installed."; echo "";
sleep 1.5
#---------Vuln SQL
#SQLmap
echo -e "\e[93m\e[1m----> Installing sqlmap";
apt-get install -y sqlmap > /dev/null 2>&1;
echo -e "\e[32mDone! Sqlmap installed."; echo "";
sleep 1.5
#NoSQLMap
echo -e ${BLUE}"[VULNERABILITY - SQL Injection]" ${RED}"NoSQLMap installation in progress ...";
git clone https://github.com/codingo/NoSQLMap.git > /dev/null 2>&1;
cd NoSQLMap
python setup.py install > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! NoSqlmap installed."; echo "";
sleep 1.5
#Jeeves
echo -e "\e[93m\e[1m----> Installing Jeeves";
go get -u github.com/ferreiraklet/Jeeves > /dev/null 2>&1 && ln -s ~/go/bin/jeeves /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Jeeves installed."; echo "";
sleep 1.5
#---------Enumeration JavaScript
#LinkFinder
echo -e "\e[93m\e[1m----> Installing LinkFinder";
git clone https://github.com/GerbenJavado/LinkFinder.git > /dev/null 2>&1;
cd LinkFinder
pip3 install -r requirements.txt > /dev/null 2>&1 && python3 setup.py install > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! LinkFinder installed."; echo "";
sleep 1.5
#SecretFinder
echo -e "\e[93m\e[1m----> Installing SecretFinder";
git clone https://github.com/m4ll0k/SecretFinder.git > /dev/null 2>&1;
cd SecretFinder
pip3 install -r requirements.txt > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! SecretFinder installed."; echo "";
sleep 1.5
#JSParser
echo -e "\e[93m\e[1m----> Installing JSParser";
git clone https://github.com/nahamsec/JSParser.git > /dev/null 2>&1;
cd JSParser*
sudo python setup.py install
cd ~/tools/
echo -e "\e[32mDone! JSParser installed."; echo "";
sleep 1.5
#---------Visual Recon
#aquatone
echo -e "\e[93m\e[1m----> Installing Aquatone";
cd /tmp && wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip > /dev/null 2>&1 && unzip aquatone_linux_amd64_1.7.0.zip > /dev/null 2>&1;
mv aquatone /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Aquatone installed."; echo "";
sleep 1.5
#---------Crawling Web
#Gospider
echo -e "\e[93m\e[1m----> Installing Gospider";
go install github.com/jaeles-project/gospider@latest > /dev/null 2>&1 && ln -s ~/go/bin/gospider /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Gospider installed."; echo "";
sleep 1.5
#Hakrawler
echo -e "\e[93m\e[1m----> Installing Hakrawler";
go install github.com/hakluke/hakrawler@latest > /dev/null 2>&1 && ln -s ~/go/bin/hakrawler /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Hakrawler installed."; echo "";
sleep 1.5
#Katana
echo -e "\e[93m\e[1m----> Installing Katana";
go install github.com/projectdiscovery/katana/cmd/katana@latest > /dev/null 2>&1 && ln -s ~/go/bin/katana /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Katana installed."; echo "";
sleep 1.5
#---------Vuln XSS
#XSStrike
echo -e "\e[93m\e[1m----> Installing XSStrike";
git clone https://github.com/s0md3v/XSStrike > /dev/null 2>&1 && cd XSStrike && pip3 install -r requirements.txt > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! XSStrike installed."; echo "";
sleep 1.5
#XSS-Loader
echo -e "\e[93m\e[1m----> Installing XSS-Loader";
git clone https://github.com/capture0x/XSS-LOADER/ > /dev/null 2>&1 && cd XSS-LOADER && pip3 install -r requirements.txt > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! XSS-Loader installed."; echo "";
sleep 1.5
#Freq
echo -e "\e[93m\e[1m----> Installing Freq";
go install github.com/takshal/freq@latest > /dev/null 2>&1 && ln -s ~/go/bin/freq /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Freq installed."; echo "";
sleep 1.5
#Gxss
echo -e "\e[93m\e[1m----> Installing Gxss";
go install github.com/KathanP19/Gxss@latest > /dev/null 2>&1 && ln -s ~/go/bin/Gxss /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Gxss installed."; echo "";
sleep 1.5
#Dalfox
echo -e "\e[93m\e[1m----> Installing Dalfox";
go install github.com/hahwul/dalfox/v2@latest > /dev/null 2>&1 && ln -s ~/go/bin/dalfox /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Dalfox installed."; echo "";
sleep 1.5
#---------Vuln SSRF
#SSRFmap
echo -e "\e[93m\e[1m----> Installing SSRFmap";
git clone https://github.com/swisskyrepo/SSRFmap > /dev/null 2>&1 && cd SSRFmap && pip3 install -r requirements.txt > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! SSRFmap installed."; echo "";
sleep 1.5
#Gopherus
echo -e "\e[93m\e[1m----> Installing Gopherus";
git clone https://github.com/tarunkant/Gopherus.git > /dev/null 2>&1 && cd Gopherus && chmod +x install.sh && ./install.sh > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! Gopherus installed."; echo "";
sleep 1.5
#---------Vuln Scan
#Nuclei
echo -e "\e[93m\e[1m----> Installing Nuclei";
go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei > /dev/null 2>&1 && ln -s ~/go/bin/nuclei /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Nuclei installed."; echo "";
sleep 1.5
#---------Virtual Host Discovery
#VirtualHostDiscovery
echo -e "\e[93m\e[1m----> Installing VirtualHostDiscovery";
git clone https://github.com/jobertabma/virtual-host-discovery.git > /dev/null 2>&1;
cd ~/tools/
echo -e "\e[32mDone! VirtualHostDiscovery installed."; echo "";
sleep 1.5
#---------Useful Tools
#anew
echo -e "\e[93m\e[1m----> Installing Anew";
go install -v github.com/tomnomnom/anew@latest > /dev/null 2>&1 && ln -s ~/go/bin/anew /usr/local/bin/;
echo -e "\e[32mDone! Dnsgen installed."; echo "";
sleep 1.5
#unew
echo -e "\e[93m\e[1m----> Installing Unew";
go get -u github.com/dwisiswant0/unew > /dev/null 2>&1 && ln -s ~/go/bin/unew /usr/local/bin/;
echo -e "\e[32mDone! Dnsgen installed."; echo "";
sleep 1.5
#gf
echo -e "\e[93m\e[1m----> Installing gf";
go get -u github.com/tomnomnom/gf > /dev/null 2>&1 && ln -s ~/go/bin/gf /usr/local/bin/;
echo -e "\e[32mDone! Gf installed."; echo "";
sleep 1.5
#Http Probe
echo -e "\e[93m\e[1m----> Installing httprobe";
go get github.com/tomnomnom/httprobe > /dev/null 2>&1 && ln -s ~/go/bin/httprobe /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Httprobe installed."; echo "";
sleep 1.5
#httpx
echo -e "\e[93m\e[1m----> Installing httpx";
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest > /dev/null 2>&1 && ln -s ~/go/bin/httpx /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Httpx installed."; echo "";
sleep 1.5
#waybackurls
echo -e "\e[93m\e[1m----> Installing waybackurls";
go install github.com/tomnomnom/waybackurls@latest > /dev/null 2>&1 && ln -s ~/go/bin/waybackurls /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Waybackurls installed."; echo "";
sleep 1.5
#Arjun
echo -e "\e[93m\e[1m----> Installing arjun";
pip3 install arjun > /dev/null 2>&1;
echo -e "\e[32mDone! Arjun installed."; echo "";
sleep 1.5
#Gau
echo -e "\e[93m\e[1m----> Installing gau";
go install github.com/lc/gau/v2/cmd/gau@latest > /dev/null 2>&1 && ln -s ~/go/bin/gau /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Gau installed."; echo "";
sleep 1.5
#Gauplus
echo -e "\e[93m\e[1m----> Installing gauplus";
go install github.com/bp0lr/gauplus@latest > /dev/null 2>&1 && ln -s ~/go/bin/gauplus /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Gauplus installed."; echo "";
sleep 1.5
#Uro
echo -e "\e[93m\e[1m----> Installing uro";
pip3 install uro > /dev/null;
cd ~/tools/
echo -e "\e[32mDone! Uro installed."; echo "";
sleep 1.5
#QSreplace
echo -e "\e[93m\e[1m----> Installing qsreplace";
go get -v github.com/tomnomnom/qsreplace > /dev/null 2>&1 && ln -s ~/go/bin/qsreplace /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Qsreplace installed."; echo "";
sleep 1.5
sleep 1.5
#SocialHunter
echo -e "\e[93m\e[1m----> Installing Socialhunter";
go install github.com/utkusen/socialhunter@latest > /dev/null 2>&1 && ln -s ~/go/bin/socialhunter /usr/local/bin/;
cd ~/tools/
echo -e "\e[32mDone! Socialhunter installed."; echo "";
sleep 1.5
echo -e "\e[92mDone! Operazione Completata\e[0m\e[39m"; echo "";