-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathoffensive_script.sh
337 lines (263 loc) · 10.4 KB
/
offensive_script.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
#!/bin/bash
mkdir /root/gist
wget https://gist.githubusercontent.com/nullenc0de/96fb9e934fc16415fbda2f83f08b28e7/raw/146f367110973250785ced348455dc5173842ee4/content_discovery_nullenc0de.txt -O /root/gist/content_discovery_nullenc0de.txt
wget https://gist.githubusercontent.com/nullenc0de/538bc891f44b6e8734ddc6e151390015/raw/a6cb6c7f4fcb4b70ee8f27977886586190bfba3d/passwords.txt -O /root/gist/passwords.txt
wget https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt -O /root/gist/all.txt
wget https://gist.githubusercontent.com/nullenc0de/9cb36260207924f8e1787279a05eb773/raw/0197d33c073a04933c5c1e2c41f447d74d2e435b/params.txt -O /root/gist/params.txt
wget https://gist.githubusercontent.com/nullenc0de/5dbc5a9c653a03fccfcea4f030a47442/raw/21cac60c3a781b694a37009c89ebd7930aaa061a/altdns.txt -O /root/gist/altdns.txt
#update
apt update
apt install python3-pip -y
apt-get install python3-venv libxml2 libxml2-dev libz-dev libxslt1-dev python3-dev -y
apt-get install libcurl4-openssl-dev libpcre3-dev libssh-dev -y
apt-get install libpcap-dev
# FINDOMAIN
wget https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux
chmod +x findomain-linux
mv findomain-linux findomain
sudo mv findomain /usr/bin/
# DNSGEN
pip3 install dnsgen
#screen
sudo apt-get install screen -y
Empire
apt install powershell-empire
#Brutespray
apt-get install brutespray -y
#commix
sudo apt-get install commix -y
#sqlmap
sudo apt-get install sqlmap -y
# Gobuster
apt-get install -y gobuster
# Nmap
apt-get install -y nmap
# Amass
apt-get install -y amass
# Masscan
apt-get install -y masscan
#Kadimus
git clone https://github.com/P0cL4bs/Kadimus.git /opt/Kadimus || git -C /opt/kadimus pull
cd /opt/Kadimus
make
cd ..
# Arjun
git clone https://github.com/s0md3v/Arjun.git /opt/Arjun || git -C /opt/parameth pull
ln -s /opt/Arjun/arjun.py /usr/local/bin/arjun
chmod +x /usr/local/bin/arjun
# Linkfinder
git clone https://github.com/GerbenJavado/LinkFinder.git || git -C /opt/LinkFinder pull
cd /opt/LinkFinder
python3 setup.py install
cd ..
GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
ln -s /root/go/bin/nuclei /usr/local/bin/nuclei
apt install -y npm
npm install -g source-map-unpack
#cme
#apt-get install python3-venv
#python3 -m pip install pipx
#pipx ensurepath
#pipx install crackmapexec
apt install crackmapexec
#tehbucketeer
sudo git clone https://github.com/abhaybhargav/bucketeer.git /opt/bucketeer || git -C /opt/bucketeer pull
export GOPATH=/opt/jaeles-project
go get github.com/jaeles-project/jaeles
ln -s /opt/jaeles-project/bin/jaeles /usr/local/bin/jaeles
jaeles config init
export GOPATH=/opt/pentest-tools
git clone https://github.com/gwen001/pentest-tools.git /opt/pentest-tools
ln -s /opt/pentest-tools/domain-finder.py /usr/local/bin/domain-finder
pip3 install -r /opt/pentest-tools/requirements2.txt
pip3 install -r /opt/pentest-tools/requirements3.txt
export GOPATH=/opt/bbscope
go get -u github.com/sw33tLie/bbscope
ln -s /opt/bbscope/bin/bbscope /usr/local/bin/bbscope
export GOPATH=/opt/ssrf-finder
go get -u github.com/random-robbie/ssrf-finder
ln -s /opt/ssrf-finder/bin/ssrf-finder /usr/local/bin/ssrf-finder
export GOPATH=/opt/httpx
go get -v github.com/projectdiscovery/httpx/cmd/httpx
ln -s /opt/httpx/bin/httpx /usr/local/bin/httpx
export GOPATH=/opt/wildcheck
go get -u github.com/theblackturtle/wildcheck
ln -s /opt/wildcheck/bin/wildcheck /usr/local/bin/wildcheck
export GOPATH=/opt/dnsx
go get -v github.com/projectdiscovery/dnsx/cmd/dnsx
ln -s /opt/dnsx/bin/dnsx /usr/local/bin/dnsx
export GOPATH=/opt/mapcidr
go get -v github.com/projectdiscovery/mapcidr/cmd/mapcidr
ln -s /opt/mapcidr/bin/mapcidr /usr/local/bin/mapcidr
export GOPATH=/opt/subjs
go get -u -v github.com/lc/subjs
ln -s /opt/subjs/bin/subjs /usr/local/bin/subjs
export GOPATH=/opt/kxss
go get -u github.com/tomnomnom/hacks/kxss
ln -s /opt/kxss/bin/kxss /usr/local/bin/kxss
export GOPATH=/opt/cswsh-scanner
go get -v -u github.com/ambalabanov/cswsh-scanner/...
ln -s /opt/cswsh-scanner/bin/cswsh-scanner /usr/local/bin/cswsh-scanner
export GOPATH=/opt/naabu
go get -v github.com/projectdiscovery/naabu/v2/cmd/naabu
ln -s /opt/naabu/bin/naabu /usr/local/bin/naabu
export GOPATH=/opt/gospider
go get -u github.com/jaeles-project/gospider
ln -s /opt/gospider/bin/gospider /usr/local/bin/gospider
wget https://github.com/jaeles-project/gospider/releases/download/1.1.5/gospider_1.1.5_linux_x86_64.zip
unzip gospider_1.1.5_linux_x86_64.zip
rm gospider_1.1.5_linux_x86_64.zip
mv gospider_1.1.5_linux_x86_64/gospider /opt/gospider/bin/gospider
rm -rf gospider_1.1.5_linux_x86_64
export GOPATH=/opt/filter-resolved
go get -u github.com/tomnomnom/hacks/filter-resolved
ln -s /opt/filter-resolved/bin/filter-resolved /usr/local/bin/filter-resolved
export GOPATH=/opt/dalfox
GO111MODULE=on go get -v github.com/hahwul/dalfox/v2
ln -s /opt/dalfox/bin/dalfox /usr/local/bin/dalfox
export GOPATH=/opt/unfurl
go get -u github.com/tomnomnom/hacks/unfurl
ln -s /opt/unfurl/bin/unfurl /usr/local/bin/unfurl
export GOPATH=/opt/puredns
go get -u github.com/d3mondev/puredns/v2
ln -s /opt/puredns/bin/puredns /usr/local/bin/puredns
export GOPATH=/opt/cidr2ip
go get -u github.com/codeexpress/cidr2ip
ln -s /opt/cidr2ip/bin/cidr2ip /usr/local/bin/cidr2ip
export GOPATH=/opt/anti-burl
go get -u github.com/tomnomnom/hacks/anti-burl
ln -s /opt/anti-burl/bin/anti-burl /usr/local/bin/anti-burl
export GOPATH=/opt/interactsh
go get -u github.com/projectdiscovery/interactsh/cmd/interactsh-client
ln -s /opt/interactsh/bin/interactsh-client /usr/local/bin/interactsh-client
export GOPATH=/opt/goverview
go get github.com/j3ssie/goverview
ln -s /opt/goverview/bin/goverview /usr/local/bin/goverview
export GOPATH=/opt/ffuf
go get -u github.com/ffuf/ffuf
ln -s /opt/ffuf/bin/ffuf /usr/local/bin/ffuf
export GOPATH=/opt/get-title
go get -u github.com/tomnomnom/hacks/get-title
ln -s /opt/get-title/bin/get-title /usr/local/bin/get-title
export GOPATH=/opt/gau
go get -u github.com/lc/gau
ln -s /opt/gau/bin/gau /usr/local/bin/gau
export GOPATH=/opt/tko-subs
go get github.com/anshumanbh/tko-subs
ln -s /opt/tko-subs/bin/tko-subs /usr/local/bin/tko-subs
export GOPATH=/opt/webanalyze
go get -u github.com/rverton/webanalyze/...
ln -s /opt/webanalyze/bin/webanalyze /usr/local/bin/webanalyze
export GOPATH=/opt/otxurls
go get -u github.com/lc/otxurls
ln -s /opt/otxurls/bin/otxurls /usr/local/bin/otxurls
export GOPATH=/opt/hakrawler
go get github.com/hakluke/hakrawler
ln -s /opt/hakrawler/bin/hakrawler /usr/local/bin/hakrawler
export GOPATH=/opt/qsreplace
go get -u github.com/tomnomnom/qsreplace
ln -s /opt/qsreplace/bin/qsreplace /usr/local/bin/qsreplace
#subjack
export GOPATH=/opt/subjack
go get github.com/haccer/subjack
ln -s /opt/subjack/bin/subjack /usr/local/bin/subjack
#gwdomains
export GOPATH=/opt/gwdomains
go get -u github.com/fuzzerk/gwdomains
ln -s /opt/gwdomains/bin/gwdomains /usr/local/bin/gwdomains
#tok
export GOPATH=/opt/tok
go get -u github.com/tomnomnom/hacks/tok
ln -s /opt/tok/bin/tok /usr/local/bin/tok
#fff
export GOPATH=/opt/fff
go get -u github.com/tomnomnom/hacks/fff
ln -s /opt/fff/bin/fff /usr/local/bin/fff
# HTTProbe
export GOPATH=/opt/httprobe
go get -u github.com/tomnomnom/httprobe
ln -s /opt/httprobe/bin/httprobe /usr/local/bin/httprobe
# FProbe
export GOPATH=/opt/fprobe
go get -u github.com/theblackturtle/fprobe
ln -s /opt/fprobe/bin/fprobe /usr/local/bin/fprobe
# Waybackurls
export GOPATH=/opt/waybackurls
go get -u github.com/tomnomnom/waybackurls
ln -s /opt/waybackurls/bin/waybackurls /usr/local/bin/waybackurls
#goaltdns
export GOPATH=/opt/goaltdns
go get -u github.com/subfinder/goaltdns
ln -s /opt/goaltdns/bin/goaltdns /usr/local/bin/goaltdns
export GOPATH=/opt/httpx2bbrf
go get -v -u github.com/z0mb13s3c/httpx2bbrf
ln -s /opt/httpx2bbrf/bin/httpx2bbrf /usr/local/bin/httpx2bbrf
# Gf
export GOPATH=/opt/gf
go get -u github.com/tomnomnom/gf
ln -s /opt/gf/bin/gf /usr/local/bin/gf
git clone https://github.com/1ndianl33t/Gf-Patterns /opt/Gf-Patterns || git -C /opt/Gf-Patterns pull
mkdir ~/.gf
mv /opt/Gf-Patterns/*.json ~/.gf
# Assetfinder
export GOPATH=/opt/assetfinder
go get -u github.com/tomnomnom/assetfinder
ln -s /opt/assetfinder/bin/assetfinder /usr/local/bin/assetfinder
# Anew
export GOPATH=/opt/anew
go get -u github.com/tomnomnom/anew
ln -s /opt/anew/bin/anew /usr/local/bin/anew
# Html-tool
export GOPATH=/opt/html-tool
go get -u github.com/tomnomnom/hacks/html-tool
ln -s /opt/html-tool/bin/html-tool /usr/local/bin/html-tool
# Gowitness
export GOPATH=/opt/gowitness
go get -u github.com/sensepost/gowitness
ln -s /opt/gowitness/bin/gowitness /usr/local/bin/gowitness
# Dirsearch
git clone https://github.com/maurosoria/dirsearch.git /opt/dirsearch || git -C /opt/dirsearch pull
ln -s /opt/dirsearch/dirsearch.py /usr/local/bin/dirsearch
chmod +x /usr/local/bin/dirsearch
# Seclist
git clone https://github.com/danielmiessler/SecLists.git /opt/SecLists || git -C /opt/SecLists pull
#dnsvalidator
git clone https://github.com/vortexau/dnsvalidator.git || git -C /opt/dnsvalidator pull
cd dnsvalidator
pip3 install -r requirements.txt
python3 setup.py install
cd ..
# SubBrute
git clone https://github.com/TheRook/subbrute.git /opt/subbrute || git -C /opt/subbrute pull
ln -s /opt/subbrute/subbrute.py /usr/local/bin/subbrute
chmod +x /usr/local/bin/subbrute
# Massdns
git clone https://github.com/blechschmidt/massdns.git /opt/massdns || git -C /opt/massdns pull
cd massdns
make
make install
cd ..
# Striker
git clone https://github.com/s0md3v/Striker.git /opt/striker || git -C /opt/striker pull
pip3 install -r /opt/striker/requirements.txt
ln -s /opt/striker/striker.py /usr/local/bin/striker
chmod +x /usr/local/bin/striker
#github search
git clone https://github.com/gwen001/github-search.git || git -C /opt/github-search pull
pip3 install -r /opt/github-search/requirements2.txt
pip3 install -r /opt/github-search/requirements3.txt
# XSStrike
git clone https://github.com/s0md3v/XSStrike.git /opt/xsstrike || git -C /opt/xsstrike pull
pip3 install -r /opt/xsstrike/requirements.txt
ln -s /opt/xsstrike/xsstrike.py /usr/local/bin/xsstrike
chmod +x /usr/local/bin/xsstrike
#slackcat
wget https://github.com/bcicen/slackcat/releases/download/1.7.1/slackcat-1.7.1-linux-amd64
mv slackcat-1.7.1-linux-amd64 /usr/local/bin/slackcat
chmod +x /usr/local/bin/slackcat
#Configure MSF
sudo service postgresql start
msfdb init
#Snp13r
git clone https://github.com/1N3/Sn1per.git /opt/Sn1per || git -C /opt/Sn1per pull
bash /opt/Sn1per/install.sh