forked from BountyStrike/Bountystrike-sh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·532 lines (455 loc) · 21.4 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
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
#!/bin/bash
STARTIME=$(date +%s)
LOGFILE="install.log"
TOOLS_DIR="$HOME/tools"
#https://misc.flogisoft.com/bash/tip_colors_and_formatting
BLINK='\e[5m'
BOLD='\e[1m'
LIGHT_GREEN='\e[92m'
LIGHT_YELLOW='\e[93m'
LIGHT_CYAN='\e[96m'
NORMAL='\e[0m'
RED='\e[31m'
UNDERLINE='\e[4m'
#=============================#
testcmd () {
command -v "$1" >/dev/null
}
# Wipe log file on every install
echo "" > $LOGFILE
installDocker() {
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common vim git python-pip build-essential libbz2-dev zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev ntp
sudo systemctl enable ntp
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get update
sudo pip install --upgrade pip
sudo pip install docker-compose
sudo apt-get -y install docker-ce docker-ce-cli containerd.io
}
installPython(){
PYTHON_VERSION="3.7.6"
PYTHON_FILE="Python-$PYTHON_VERSION.tgz"
wget https://www.python.org/ftp/python/$PYTHON_VERSION/$PYTHON_FILE
tar -xvf $PYTHON_FILE
rm -rf $PYTHON_FILE
cd Python-$PYTHON_VERSION
./configure
make -j 1
sudo make altinstall
cd ..
sudo rm -rf Python-$PYTHON_VERSION
}
installRuby(){
wget https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0.tar.gz
gunzip -d ruby-2.7.0.tar.gz
tar -xvf ruby-2.7.0.tar
cd ruby-2.7.0/
./configure
make
sudo make install
cd ..
rm -rf ruby-2.7.0
}
installMullvadVPN(){
MULLVADVPN_VERSION="2019.10_amd64"
wget "https://mullvad.net/media/app/MullvadVPN-$MULLVADVPN_VERSION.deb"
sudo dpkg -i "MullvadVPN-$MULLVADVPN_VERSION.deb"
rm "MullvadVPN-$MULLVADVPN_VERSION.deb"
}
echo -e "${BOLD}${LIGHT_CYAN}\n[~] Bountystrike environment installation${NORMAL}"
echo -e "${BOLD}[~] Installing bug bounty tools...${NORMAL}"
echo -e "=========================================\n"
echo " "
echo " .--::///+ _______________________________________________"
echo " -+sydmmmNNNNNNN | |"
echo " ./ymmNNNNNNNNNNNNNN | |"
echo " -ymmNNNNNNNNNNNNNNNNN | It is a shame that your report was a |"
echo " ommmmNNNNNNNNNNNNNNNNN | duplicate, but bug bounty hunting is |"
echo " .ydmNNNNNNNNNNNNNNNNNNNN | a complicated profession. |"
echo " odmmNNNNNNNNNNNNNNNNNNNN | |"
echo " /hmmmNNNNNNNNNNNNNNNNMNNN | They said you were coming, they said you |"
echo " +hmmmNNNNNNNNNNNNNNNNNMMN | were the best on all platforms, would you |"
echo " ..ymmmNNNNNNNNNNNNNNNNNNNN | agree? |"
echo " :.+so+//:---.......----::- | |"
echo " . ....----:///++++ | Bounty Hunter, the programs are waiting |"
echo " .-/osy+////:::---...-dNNNN | for you. |"
echo " :sdyyydy :mNNNNM | |"
echo " -hmmdhdmm: .+hNNNNNNM | - Yea? Good. |"
echo " .odNNmdmmNNo .:+yNNNNNNNNNN | |"
echo -e " -hNNNmNo::mNNNNNNNNNNNNNNNNNNN | ${LIGHT_GREEN}-+- ${LIGHT_YELLOW}BOUNTYSTRIKE ${LIGHT_GREEN}-+-${NORMAL} |"
echo " -hNNmdNo--/dNNNNNNNNNNNNNNNNNN | |"
echo " :dNmmdmd-:+NNNNNNNNNNNNNNNNNNm | This script will install a bug bounty |"
echo " /hNNmmddmd+mNNNNNNNNNNNNNNds++o | hunting environment containing tools and |"
echo " /dNNNNNmmmmmmmNNNNNNNNNNNmdoosydd | tradecraft by bounty hunters, for bounty |"
echo " sNNNNdyydNNNNmmmmmmNNNNNmyoymNNNNN | hunters. |"
echo " :NNmmmdso++dNNNNmmNNNNNdhymNNNNNNNN | |"
echo " -NmdmmNNdsyohNNNNmmNNNNNNNNNNNNNNNN | @dubs3c |"
echo " sdhmmNNNNdyhdNNNNNNNNNNNNNNNNNNNNN | |"
echo " /yhmNNmmNNNNNNNNNNNNNNNNNNNNNNmhh | |"
echo " +yhmmNNNNNNNNNNNNNNNNNNNNNNmh+: |_______________________________________________|"
echo " ./dmmmmNNNNNNNNNNNNNNNNmmd."
echo " ommmmmNNNNNNNmNmNNNNmmd:"
echo " :dmmmmNNNNNmh../oyhhhy:"
echo " sdmmmmNNNmmh/++-.+oh."
echo " /dmmmmmmmmdo-:/ossd:"
echo " /ohhdmmmmmmdddddmh/"
echo " -/osyhdddddhyo:"
echo " .----. "
sleep 5
# Create a tools directory 3d-party tools are stored
mkdir -p $TOOLS_DIR
echo -e "${BOLD}${LIGHT_GREEN}[+] Updating system...${NORMAL}"
sudo apt-get update
sudo apt-get upgrade -y
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing git jq gcc make libpcap-dev unzip tmux chromium-browser software-properties-common chromium-chromedriver...${NORMAL}"
sudo apt-get install -y git jq gcc make libpcap-dev unzip tmux chromium-browser chromium-chromedriver >> $LOGFILE 2>&1
if ! testcmd docker; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Docker-CE...${NORMAL}"
installDocker
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Docker-CE...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd python3.7; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Python-3.7.6...${NORMAL}"
installPython
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Python-3.7.6...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd ruby; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Ruby-2.6.3...${NORMAL}"
installRuby
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Ruby-2.6.3...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd npm; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing npm...${NORMAL}"
bash nodejs.sh
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing npm...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd mullvad; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing MullvadVPN...${NORMAL}"
installMullvadVPN
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing MullvadVPN...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -x /usr/local/go/bin/go ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing golang...${NORMAL}"
wget https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz -O golang-13.5.tar.gz
sudo tar -C /usr/local -xzf golang-13.5.tar.gz
rm -rf golang-13.5.tar.gz
echo -e "${BOLD}${LIGHT_GREEN}[+] Adding Go to PATH...${NORMAL}"
echo "export GOPATH=$HOME/go" >> "$HOME/.profile"
echo "export PATH=$HOME/go/bin:/usr/local/go/bin:$PATH" >> "$HOME/.profile"
source "$HOME/.profile"
echo "[!] Done, run \"source $HOME/.profile\" when install is done."
fi
if ! testcmd /usr/local/go/bin/go; then
echo -e "${RED}[-] Go was not installed :/${NORMAL}"
echo -e "${RED}[-] Exiting${NORMAL}"
exit
fi
echo "-----------------------------------------"
echo -e "${BOLD}${LIGHT_YELLOW}[~] Installing go tools${NORMAL}"
echo "-----------------------------------------"
# Check if the tool exists in $PATH before installing it
if ! testcmd amass; then
export GO111MODULE=on
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing amass...${NORMAL}"
go get -u github.com/OWASP/Amass/v3/...
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing amass...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd subfinder; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing subfinder...${NORMAL}"
go get github.com/projectdiscovery/subfinder/cmd/subfinder
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing subfinder...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd gobuster; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing gobuster...${NORMAL}"
go get github.com/OJ/gobuster
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing gobuster...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd waybackurls; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing waybackurls...${NORMAL}"
go get -u github.com/tomnomnom/waybackurls
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing waybackurls...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd waybackunifier; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing waybackunifier...${NORMAL}"
go get github.com/mhmdiaa/waybackunifier
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing waybackunifier...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd fff; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing fff...${NORMAL}"
go get -u github.com/tomnomnom/hacks/fff
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing fff...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd httprobe; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing httprobe...${NORMAL}"
go get -u github.com/tomnomnom/httprobe
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing httprobe...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd meg; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing meg...${NORMAL}"
go get -u github.com/tomnomnom/meg
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing meg...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd unfurl; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing unfurl...${NORMAL}"
go get -u github.com/tomnomnom/unfurl
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing unfurl...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd filter-resolved; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing filter-resolved...${NORMAL}"
go get -u github.com/tomnomnom/hacks/filter-resolved
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing filter-resolved...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd gowitness; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing gowitness...${NORMAL}"
go get -u github.com/sensepost/gowitness
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing gowitness...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd getJS; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing GetJS...${NORMAL}"
go get -u github.com/003random/getJS
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing GetJS...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd subzy; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Subzy...${NORMAL}"
go get -u github.com/lukasikic/subzy
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Subzy...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd SubOver; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing SubOver...${NORMAL}"
go get -u github.com/Ice3man543/SubOver
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing SubOver...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd shhgit; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Shhgit...${NORMAL}"
go get github.com/eth0izzle/shhgit
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Shhgit...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd gitrob; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing gitrob...${NORMAL}"
go get github.com/michenriksen/gitrob
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing gitrob...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd ffuf; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing ffuf...${NORMAL}"
go get github.com/ffuf/ffuf
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing ffuf...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd unisub; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing unisub...${NORMAL}"
go get -u github.com/tomnomnom/hacks/unisub
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing unisub...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd aquatone; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing aquatone...${NORMAL}"
AQUATONE="aquatone-1.7.0.zip"
wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip -O $AQUATONE
unzip $AQUATONE -x LICENSE.txt -x README.md
sudo mv aquatone /usr/local/bin
rm -rf $AQUATONE
fi
echo -e "\n-----------------------------------------"
echo -e "${BOLD}${LIGHT_YELLOW}[~] Installing python tools${NORMAL}"
echo "-----------------------------------------"
if ! testcmd dnsgen; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing dnsgen...${NORMAL}"
python3.7 -m pip install dnsgen --user
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing dnsgen...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd trufflehog; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing trufflehog...${NORMAL}"
python3.7 -m pip install truffleHog --user
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing trufflehog...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd scout; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing scoutsuite...${NORMAL}"
python3.7 -m pip install scoutsuite --user
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing scoutsuite...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd aws; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing awscli...${NORMAL}"
python3.7 -m pip install awscli --user
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing awscli...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd wafw00f; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing wafw00f...${NORMAL}"
git clone https://github.com/EnableSecurity/wafw00f.git $TOOLS_DIR/wafw00f
cd $TOOLS_DIR/wafw00f
python3.7 setup.py install --user
cd
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing wafw00f...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/Corsy" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Corsy...${NORMAL}"
git clone https://github.com/s0md3v/Corsy $TOOLS_DIR/Corsy
cd "$TOOLS_DIR/Corsy"
pip3.7 install -r requirements.txt --user
cd
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Corsy...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/flumberboozle" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing flumberboozle...${NORMAL}"
git clone https://github.com/fellchase/flumberboozle $TOOLS_DIR/flumberboozle
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing flumberboozle...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/bass" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing bass...${NORMAL}"
git clone https://github.com/Abss0x7tbh/bass $TOOLS_DIR/bass
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing bass...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/dirsearch" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing dirsearch...${NORMAL}"
git clone https://github.com/maurosoria/dirsearch.git $TOOLS_DIR/dirsearch
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing dirsearch...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/Injectus" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Injectus...${NORMAL}"
git clone https://github.com/BountyStrike/Injectus $TOOLS_DIR/Injectus
cd $TOOLS_DIR/Injectus
pip3.7 install -r requirements.txt --user
cd
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Injectus...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
echo -e "\n-----------------------------------------"
echo -e "${BOLD}${LIGHT_YELLOW}[~] Installing ruby tools${NORMAL}"
echo "-----------------------------------------"
if [ ! -d "$TOOLS_DIR/WhatWeb" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing WhatWeb to $TOOLS_DIR/...${NORMAL}"
git clone https://github.com/urbanadventurer/WhatWeb.git $TOOLS_DIR/WhatWeb
cd $TOOLS_DIR/WhatWeb
bundle install
cd
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing WhatWeb to $TOOLS_DIR/...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
echo -e "\n-----------------------------------------"
echo -e "${BOLD}${LIGHT_YELLOW}[~] Installing misc tools${NORMAL}"
echo "-----------------------------------------"
if [ ! -f "$TOOLS_DIR/chromedriver" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing chromedriver to $TOOLS_DIR...${NORMAL}"
wget https://chromedriver.storage.googleapis.com/78.0.3904.105/chromedriver_linux64.zip -O chromedriver.zip
unzip chromedriver.zip
sudo mv chromedriver $TOOLS_DIR
rm -rf chromedriver.zip
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing chromedriver to $TOOLS_DIR...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd massdns; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing massdns...${NORMAL}"
git clone https://github.com/blechschmidt/massdns.git
cd massdns
make >> $LOGFILE 2>&1
sudo mv bin/massdns /usr/local/bin
cp lists/resolvers.txt $TOOLS_DIR/resolvers.txt
cd ..
rm -rf massdns
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing massdns...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd masscan; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing masscan...${NORMAL}"
git clone https://github.com/robertdavidgraham/masscan
cd masscan
make -j >> $LOGFILE 2>&1
sudo mv ./bin/masscan /usr/bin/
cd ..
rm -rf masscan
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing masscan...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/seclists" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing SecLists to $TOOLS_DIR...${NORMAL}"
git clone https://github.com/danielmiessler/SecLists.git $TOOLS_DIR/seclists
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing SecLists to $TOOLS_DIR...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/wordlists/commonspeak2" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Commonspeak2 wordlists to $TOOLS_DIR...${NORMAL}"
git clone https://github.com/assetnote/commonspeak2-wordlists $TOOLS_DIR/wordlists/commonspeak2
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Commonspeak2 wordlists to $TOOLS_DIR/wordlists...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/wordlists/api_wordlists" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing api_wordlist to $TOOLS_DIR/wordlists...${NORMAL}"
git clone https://github.com/chrislockard/api_wordlist $TOOLS_DIR/wordlists/api_wordlists
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing api_wordlist to $TOOLS_DIR/wordlists...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/wordlists/fuzz.txt" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Bo0oM/fuzz.txt to $TOOLS_DIR/wordlists...${NORMAL}"
git clone https://github.com/Bo0oM/fuzz.txt.git $TOOLS_DIR/wordlists/fuzz.txt
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Bo0oM/fuzz.txt to $TOOLS_DIR/wordlists...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/wordlists/fuzz.txt" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Bo0oM/fuzz.txt to $TOOLS_DIR/wordlists...${NORMAL}"
git clone https://github.com/Bo0oM/fuzz.txt.git $TOOLS_DIR/wordlists/fuzz.txt
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Bo0oM/fuzz.txt to $TOOLS_DIR/wordlists...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/wordlists/Probable-Wordlists" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Probable-Wordlists to $TOOLS_DIR/wordlists...${NORMAL}"
git clone https://github.com/berzerk0/Probable-Wordlists $TOOLS_DIR/wordlists/Probable-Wordlists
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing Probable-Wordlists to $TOOLS_DIR/wordlists...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if [ ! -d "$TOOLS_DIR/wordlists/fuzzdb" ]; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing fuzzdb to $TOOLS_DIR/wordlists...${NORMAL}"
git clone https://github.com/fuzzdb-project/fuzzdb $TOOLS_DIR/wordlists/fuzzdb
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing fuzzdb to $TOOLS_DIR/wordlists...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
if ! testcmd nmap; then
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing nmap...${NORMAL}"
git clone https://github.com/nmap/nmap.git
cd nmap
echo -e "${LIGHT_CYAN}[!] Configuring nmap...${NORMAL}"
sh ./configure
echo -e "${LIGHT_CYAN}[!] Running make nmap...${NORMAL}"
make
echo -e "${LIGHT_CYAN}[!] Runing make install nmap...${NORMAL}"
sudo make install
cd ..
rm -rf nmap
else
echo -e "${BOLD}${LIGHT_GREEN}[+] Installing nmap...${LIGHT_YELLOW}[ALREADY INSTALLED]${NORMAL}"
fi
echo -e "${LIGHT_CYAN}\n[+] Looks like we are done? You may need to run source ~/.profile in order for some programs to take effect${NORMAL}"
echo -e "\n========================================="
echo -e "${BOLD}${LIGHT_YELLOW}~ BountyStrike-sh installation complete ~${NORMAL}"
echo -e "${BOLD}${LIGHT_GREEN}~ Enjoy your bounties ~${NORMAL}\n"