-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
install.sh
354 lines (294 loc) · 9.21 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
#!/bin/bash
#Make by nahamsec Edit by @0xElkomy
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y jq
apt-get install python-requests
apt-get install python-dnspython
apt-get install python-argparse
sudo apt-get install -y ruby-full
sudo apt-get install -y libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev
sudo apt-get install -y build-essential libssl-dev libffi-dev python-dev
sudo apt-get install -y python-setuptools
sudo apt-get install -y libldns-dev
sudo apt-get install -y python3-pip
sudo apt-get install -y python-pip
sudo apt-get install -y python-dnspython
sudo apt-get install -y git
sudo apt-get install -y rename
sudo apt-get install egrep
sudo apt-get install snap
sudo apt-get install snapd
sudo apt-get install -y xargs
sudo snap install amass
sudo apt-get install cargo
#pip / pip3 install
pip3 install Pool
pip3 install requests
pip3 install codecs
pip3 install time
#install go
if [[ -z "$GOPATH" ]];then
echo "It looks like go language is not installed, would you like to install it now"
PS3="Please select an option : "
choices=("yes" "no")
select choice in "${choices[@]}"; do
case $choice in
yes)
echo "Installing Golang"
wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz
sudo tar -xvf go1.23.1.linux-amd64.tar.gz
sudo 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' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
sleep 1
break
;;
no)
echo "Please install go and rerun this script"
echo "Aborting installation..."
exit 1
;;
esac
done
fi
#Don't forget to set up AWS credentials!
echo -e "Don't forget to set up AWS credentials!"
apt install -y awscli
echo -e "Don't forget to set up AWS credentials!"
#create a tools folder in ~/
mkdir ~/tools
cd ~/tools/
#Install shuffledns
echo -e "Installing shuffledns"
go install github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest
echo -e "Done install shuffledns"
#install censys-subdomain-finder
echo -e "Installing censys-subdomain-finder"
git clone https://github.com/christophetd/censys-subdomain-finder.git
cd ~/tools/
cd censys-subdomain-finder
pip install -r requirements.txt
echo -e "Done install censys-subdomain-finder"
#install subfinder
echo -e "Installing subfinder"
cd ~/tools/
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
echo -e "Done install subfinder"
#Install findomain
echo -e "Installing findomain"
git clone https://github.com/Edu4rdSHL/findomain.git -b develop
cd ~/tools/
cd findomain
cargo build --release
cp findomain /usr/bin/
echo -e "Done install findomain"
#SubDomainizer
echo -e "Installing SubDomainizer"
cd ~/tools/
git clone https://github.com/nsonaniya2010/SubDomainizer.git
cd SubDomainizer
pip3 install -r requirements.txt
echo -e "Done Install SubDomainizer"
#CTFR
echo -e "Installing CTFR"
cd ~/tools/
git clone https://github.com/UnaPibaGeek/ctfr.git
cd ctfr
pip3 install -r requirements.txt
echo -e "Done Install ctfr"
#TitleXtractor
cd ~/tools/
echo -e "Installing TitleXtractor"
go install github.com/dellalibera/titlextractor@latest
echo -e "Done Install TitleXtractor"
#Subdomain Takeover Scan via subzy
cd ~/tools/
echo -e "Installing Subzy"
go install github.com/lukasikic/subzy@latest
echo -e "Done Install Subzy"
#dnsprobe
echo -e "Installing dnsprobe"
cd ~/tools/
go install github.com/projectdiscovery/dnsprobe@latest
echo -e "Done Install dnsprobe"
#nuclei
echo -e "Installing nuclei"
cd ~/tools/
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
echo -e "Done Install nuclei"
#cookieless
echo -e "Installing cookieless"
cd ~/tools/
go install github.com/RealLinkers/cookieless@latest
echo -e "Done Install cookieless"
#XSStrike
echo -e "Installing XSStrike"
cd ~/tools/
git clone https://github.com/s0md3v/XSStrike
cd XSStrike
pip3 install -r requirements.txt
echo -e "Done Install XSStrike"
echo -e "Installing hakrawler"
cd ~/tools/
go install github.com/hakluke/hakrawler@latest
echo -e "Done Install hakrawler"
echo -e "Installing waybackurls"
cd ~/tools/
go install github.com/tomnomnom/waybackurls@latest
echo -e "Done Install waybackurls"
echo -e "Installing qsreplace"
cd ~/tools/
go install github.com/tomnomnom/qsreplace@latest
echo -e "Done Install qsreplace"
echo -e "Installing gau"
cd ~/tools/
go install -v github.com/lc/gau@latest
echo -e "Done Install gau"
#CMSmap Vulnerabilities Scanning WordPress, Joomla, Drupal and Moodle
echo -e "Installing CMSmap"
cd ~/tools/
git clone https://github.com/Dionach/CMSmap.git
cd CMSmap
pip3 install .
echo -e "Done Install CMSmap"
#Testing for Default HTTP Login.
echo -e "Installing default-http-login-hunter"
cd ~/tools/
git clone https://github.com/InfosecMatter/default-http-login-hunter
echo -e "Done Install default-http-login-hunter"
echo -e "Installing Workflow-Bug-Bounty xElkomy"
cd ~/tools/
git clone https://github.com/xElkomy/Workflow-Bug-Bounty
echo -e "Done Install Workflow-Bug-Bounty xElkomy"
echo -e "Installing KXSS"
cd ~/tools/
go install github.com/tomnomnom/hacks/kxss@latest
echo -e "Done Install KXSS"
#install aquatone
echo "Installing Aquatone"
cd ~/tools/
go install github.com/michenriksen/aquatone@latest
echo -e "Done Install Aquatone"
#install chromium
echo -e "Installing Chromium"
sudo snap install chromium
echo -e "Done install chromium"
echo -e "installing JSParser"
git clone https://github.com/nahamsec/JSParser.git
cd JSParser*
sudo python setup.py install
cd ~/tools/
echo -e "Done install JSParser"
echo -e "installing Sublist3r"
git clone https://github.com/aboul3la/Sublist3r.git
cd Sublist3r*
pip install -r requirements.txt
cd ~/tools/
echo -e "Done install Sublist3r"
echo -e "installing teh_s3_bucketeers"
git clone https://github.com/tomdev/teh_s3_bucketeers.git
cd ~/tools/
echo -e "Done install teh_s3_bucketeers"
echo -e "installing wpscan"
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan*
sudo gem install bundler && bundle install --without test
cd ~/tools/
echo -e "Done install wpscan"
echo -e "installing dirsearch"
git clone https://github.com/maurosoria/dirsearch.git
cd ~/tools/
echo -e "Done install dirsearch"
echo -e "installing sqlmap"
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev
cd ~/tools/
echo -e "Done install sqlmap"
echo -e "installing knock.py"
git clone https://github.com/guelfoweb/knock.git
cd ~/tools/
echo -e "Done install knock.py"
echo -e "installing nmap"
sudo apt-get install -y nmap
echo -e "Done install nmap"
echo -e "installing massdns"
git clone https://github.com/blechschmidt/massdns.git
cd ~/tools/massdns
make
cd ~/tools/
echo -e "Done install massdns"
echo -e "installing asnlookup"
git clone https://github.com/yassineaboukir/asnlookup.git
cd ~/tools/asnlookup
pip install -r requirements.txt
cd ~/tools/
echo -e "Done install asnlookup"
echo -e "installing httprobe"
go install github.com/tomnomnom/httprobe@latest
echo -e "Done install httprobe"
echo -e "installing unfurl"
go install github.com/tomnomnom/unfurl@latest
echo -e "Done install unfurl"
echo -e "installing Web-Cache-Vulnerability-Scanner"
go install https://github.com/Hackmanit/Web-Cache-Vulnerability-Scanner
echo -e "Done install Web-Cache-Vulnerability-Scanner"
echo -e "installing crtndstry"
git clone https://github.com/nahamsec/crtndstry.git
echo -e "Done install crtndstry"
echo -e "downloading Seclists"
cd ~/tools/
git clone https://github.com/danielmiessler/SecLists.git
cd ~/tools/SecLists/Discovery/DNS/
##THIS FILE BREAKS MASSDNS AND NEEDS TO BE CLEANED
cat dns-Jhaddix.txt | head -n -14 > clean-jhaddix-dns.txt
cd ~/tools/
echo -e "Done install SecLists"
echo -e "installing httpx"
go install github.com/projectdiscovery/httpx@latest
cd ~/tools/
echo -e "Done install httpx"
echo -e "installing aem-hacker"
git clone https://github.com/0ang3el/aem-hacker.git
cd ~/tools/
echo -e "Done install aem-hacker"
echo -e "installing Goohak"
git clone https://github.com/1N3/Goohak.git
cd ~/tools/
echo -e "Done install Goohak"
echo -e "installing jexboss"
git clone https://github.com/joaomatosf/jexboss.git ~/tools/jexboss
cd ~/tools/jexboss
pip3 install -r requires.txt
cd ~/tools/
echo -e "Done install jexboss"
echo -e "installing scant3r"
git clone https://github.com/knassar702/scant3r ~/tools/scant3r
cd ~/tools/scant3r
pip3 install -r requirements.txt
cd ~/tools/
echo -e "Done install scant3r"
echo -e "installing crlfuzz"
git clone https://github.com/dwisiswant0/crlfuzz.git ~/tools/crlfuzz
cd ~/tools/crlfuzz/cmd/crlfuzz
go build .
mv crlfuzz /usr/local/bin
cd ~/tools/
echo -e "Done install crlfuzz"
echo -e "installing lazys3"
git clone https://github.com/nahamsec/lazys3.git ~/tools/lazys3
cd ~/tools/
echo -e "Done install lazys3"
echo -e "installing flumberboozle"
git clone https://github.com/fellchase/flumberboozle.git ~/tools/flumberboozle
cd ~/tools/
echo -e "Done install flumberboozle"
echo -e "\n\n\n\n\n\n\n\n\n\n\nDone! All tools are set up in ~/tools"
ls -la
echo -e "One last time: don't forget to set up AWS credentials in ~/.aws/!"