-
-
Notifications
You must be signed in to change notification settings - Fork 149
/
Dockerfile
632 lines (564 loc) · 19 KB
/
Dockerfile
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
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
FROM ubuntu as baseline
LABEL maintainer="Arsenio Aguirre" \
email="[email protected]"
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
# Install packages
RUN \
apt-get update && \
apt-get install -y \
traceroute \
whois \
host \
htop \
dnsutils \
net-tools \
figlet \
tcpdump \
telnet \
prips \
cifs-utils \
rlwrap \
iputils-ping \
git \
xsltproc \
rdate \
zsh \
curl \
unzip \
p7zip-full \
locate \
tree \
openvpn \
vim \
wget \
ftp \
apache2 \
squid \
python3 \
python3-pip \
jq \
libcurl4-openssl-dev \
libssl-dev \
nmap \
masscan \
nikto \
netcat \
cewl \
crunch \
hydra \
medusa \
pocl-opencl-icd \
libwww-perl \
chromium-browser \
dos2unix \
openjdk-8-jdk \
ssh \
rsyslog \
fcrackzip \
texlive-full \
latexmk \
exiftool \
steghide \
binwalk \
foremost \
sqlite3 \
# patator dependencies
libmysqlclient-dev \
# evil-winrm dependencies
ruby-full \
# enum4linux dependencies
ldap-utils \
smbclient \
# john dependencies
build-essential \
libssl-dev \
zlib1g-dev \
yasm \
pkg-config \
libgmp-dev \
libpcap-dev \
libbz2-dev \
# crackmapexec dependencies
libffi-dev \
python-dev && \
DEBIAN_FRONTEND=noninteractive apt-get install -y php \
libapache2-mod-php && \
gem install \
gpp-decrypt \
addressable \
wpscan \
# Install evil-winrm
evil-winrm && \
apt-get update
RUN python3 -m pip install --upgrade pip
FROM baseline as builder
# SERVICES
# Apache configuration
RUN \
sed -i 's/It works!/It works form container!/g' /var/www/html/index.html && \
# Squid configuration
echo "http_access allow all" >> /etc/squid/squid.conf && \
sed -i 's/http_access deny all/#http_access deny all/g' /etc/squid/squid.conf && \
# OS TOOLS
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
sed -i '1i export LC_CTYPE="C.UTF-8"' /root/.zshrc && \
sed -i '2i export LC_ALL="C.UTF-8"' /root/.zshrc && \
sed -i '3i export LANG="C.UTF-8"' /root/.zshrc && \
sed -i '3i export LANGUAGE="C.UTF-8"' /root/.zshrc && \
git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions && \
git clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting.git /root/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting && \
git clone --depth 1 https://github.com/zsh-users/zsh-history-substring-search /root/.oh-my-zsh/custom/plugins/zsh-history-substring-search && \
sed -i 's/plugins=(git)/plugins=(git aws golang nmap node pip pipenv python ubuntu zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search)/g' /root/.zshrc && \
sed -i '78i autoload -U compinit && compinit' /root/.zshrc
# Install python dependencies
COPY requirements_pip.txt /tmp
RUN \
pip install -r /tmp/requirements_pip.txt
# DEVELOPER TOOLS
# Install go
WORKDIR /tmp
RUN \
# Update from 1.15.5 to 1.16.2
# wget -q https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz -O go.tar.gz && \
wget -q https://dl.google.com/go/go1.16.2.linux-amd64.tar.gz -O go.tar.gz && \
tar -C /usr/local -xzf go.tar.gz && \
# Install aws-cli
curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip && \
unzip awscliv2.zip && \
./aws/install && \
# Install node
curl -sL https://deb.nodesource.com/setup_14.x | bash && \
apt install -y nodejs
ENV GOROOT "/usr/local/go"
ENV GOPATH "/root/go"
ENV PATH "$PATH:$GOPATH/bin:$GOROOT/bin"
# PORT SCANNING
RUN mkdir -p /tools/portScanning
WORKDIR /tools/portScanning
RUN \
# Download naabu
mkdir -p /tools/portScanning/naabu
WORKDIR /tools/portScanning/naabu
RUN \
wget --quiet https://github.com/projectdiscovery/naabu/releases/download/v1.1.4/naabu_1.1.4_linux_amd64.tar.gz -O naabu.tar.gz && \
tar -xzf naabu.tar.gz && \
rm naabu.tar.gz && \
ln -s /tools/portScanning/naabu/naabu /usr/bin/naabu
# BUILDER RECON
FROM baseline as recon
RUN mkdir /temp
WORKDIR /temp/
# Download whatweb
RUN \
git clone --depth 1 https://github.com/urbanadventurer/WhatWeb.git && \
# Install dirsearch
git clone --depth 1 https://github.com/maurosoria/dirsearch.git && \
# Download arjun
git clone --depth 1 https://github.com/s0md3v/Arjun.git && \
# Download joomscan
git clone --depth 1 https://github.com/rezasp/joomscan.git && \
# Install massdns
git clone --depth 1 https://github.com/blechschmidt/massdns.git && \
# Install striker
git clone --depth 1 https://github.com/s0md3v/Striker.git && \
# Install Photon
git clone --depth 1 https://github.com/s0md3v/Photon.git && \
# Download linkfinder
git clone --depth 1 https://github.com/GerbenJavado/LinkFinder.git && \
# Downlado CMSeeK
git clone --depth 1 https://github.com/Tuhinshubhra/CMSeeK.git && \
# Install aquatone
wget --quiet https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip -O aquatone.zip && \
unzip aquatone.zip -d aquatone && \
rm aquatone.zip && \
# Install amass
wget --quiet https://github.com/OWASP/Amass/releases/download/v3.10.5/amass_linux_amd64.zip -O amass.zip && \
unzip amass.zip -d amass && \
rm amass.zip && \
# Download Sublist3r
git clone --depth 1 https://github.com/aboul3la/Sublist3r.git && \
# Download spiderfoot
git clone --depth 1 https://github.com/smicallef/spiderfoot && \
mkdir /temp/gowitness && \
mkdir /temp/subfinder && \
mkdir /temp/findomain && \
mkdir /temp/gau && \
mkdir /temp/subjs
WORKDIR /temp/Photon
RUN \
chmod +x photon.py && \
dos2unix photon.py
WORKDIR /temp/CMSeeK
RUN \
mkdir Result && \
chmod +x cmseek.py
# Download gowitness
WORKDIR /temp/gowitness
RUN \
wget --quiet https://github.com/sensepost/gowitness/releases/download/1.3.4/gowitness-linux-amd64 -O gowitness && \
chmod +x gowitness
# Download findomain
WORKDIR /temp/findomain
RUN \
wget --quiet https://github.com/Edu4rdSHL/findomain/releases/download/2.1.1/findomain-linux -O findomain && \
chmod +x findomain
# Download subfinder
WORKDIR /temp/subfinder
RUN \
wget --quiet https://github.com/projectdiscovery/subfinder/releases/download/v2.4.5/subfinder_2.4.5_linux_amd64.tar.gz -O subfinder.tar.gz && \
tar -xzf subfinder.tar.gz && \
rm subfinder.tar.gz
# Download gau
WORKDIR /temp/gau
RUN \
wget --quiet https://github.com/lc/gau/releases/download/v1.0.3/gau_1.0.3_linux_amd64.tar.gz -O gau.tar.gz && \
tar -xzf gau.tar.gz && \
rm gau.tar.gz
# Download subjs
WORKDIR /temp/subjs
RUN \
wget --quiet https://github.com/lc/subjs/releases/download/v1.0.1/subjs_1.0.1_linux_amd64.tar.gz -O subjs.tar.gz && \
tar -xzf subjs.tar.gz && \
rm subjs.tar.gz
# Download httpx
WORKDIR /temp/httpx
RUN \
wget --quiet https://github.com/projectdiscovery/httpx/releases/download/v1.0.1/httpx_1.0.1_linux_amd64.tar.gz -O httpx.tar.gz && \
tar -xzf httpx.tar.gz && \
rm httpx.tar.gz
# RECON
FROM builder as builder2
COPY --from=recon /temp/ /tools/recon/
WORKDIR /tools/recon
# Install gobuster
RUN \
go get github.com/OJ/gobuster && \
# Install tojson
go get -u github.com/tomnomnom/hacks/tojson && \
# Install gowitness
ln -s /tools/recon/gowitness/gowitness /usr/bin/gowitness && \
# Install subjack
go get github.com/haccer/subjack && \
# Install SubOver
go get github.com/Ice3man543/SubOver && \
# Install tko-subs
go get github.com/anshumanbh/tko-subs && \
# Install hakcheckurl
go get github.com/hakluke/hakcheckurl && \
# Install haktldextract
go get github.com/hakluke/haktldextract && \
# Install gotop
go get github.com/cjbassi/gotop && \
# Install aquatone
ln -s /tools/recon/aquatone/aquatone /usr/bin/aquatone && \
# Install knock
git clone --depth 1 https://github.com/guelfoweb/knock.git && \
# Install whatweb
ln -s /tools/recon/WhatWeb/whatweb /usr/bin/whatweb && \
# Install CMSeek
ln -s /tools/recon/CMSeeK/cmseek.py /usr/bin/cmseek && \
# Install Photon
ln -s /tools/recon/Photon/photon.py /usr/bin/photon && \
# Install gau
ln -s /tools/recon/gau/gau /usr/bin/getallurls && \
# Install subjs
ln -s /tools/recon/subjs/subjs /usr/bin/subjs && \
# Install otxurls
go get github.com/lc/otxurls && \
# Install amass
ln -s /tools/recon/amass/amass_linux_amd64/amass /usr/bin/amass && \
# Install hakrevdns
go get github.com/hakluke/hakrevdns && \
# Install ffuf
go get github.com/ffuf/ffuf && \
# Install httprobe
go get -u github.com/tomnomnom/httprobe && \
# Install hakrawler
go get github.com/hakluke/hakrawler && \
# Install waybackurls
go get github.com/tomnomnom/waybackurls && \
# Download gospider
go get -u github.com/jaeles-project/gospider && \
# Download getJS
go get github.com/003random/getJS && \
# Install findomain
ln -s /tools/recon/findomain/findomain /usr/bin/findomain && \
# Install subfinder
ln -s /tools/recon/subfinder/subfinder /usr/bin/subfinder && \
# Install sublist3r
ln -s /tools/recon/Sublist3r/sublist3r.py /usr/bin/sublist3r && \
# Install httpx
ln -s /tools/recon/httpx/httpx /usr/bin/httpx
WORKDIR /tools/recon/knock
RUN python3 setup.py install
# Install linkfinder
WORKDIR /tools/recon/LinkFinder
RUN \
python3 setup.py install && \
pip install -r requirements.txt
# Install spiderfoot
WORKDIR /tools/recon/spiderfoot
RUN pip install -r requirements.txt
# BUILDER WORDLIST
FROM baseline as wordlist
RUN mkdir /temp
WORKDIR /temp
# Download wordlists
RUN \
git clone --depth 1 https://github.com/xmendez/wfuzz.git && \
git clone --depth 1 https://github.com/danielmiessler/SecLists.git && \
git clone --depth 1 https://github.com/fuzzdb-project/fuzzdb.git && \
git clone --depth 1 https://github.com/daviddias/node-dirbuster.git && \
git clone --depth 1 https://github.com/v0re/dirb.git && \
curl -L -o rockyou.txt https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt && \
curl -L -o all.txt https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt && \
curl -L -o fuzz.txt https://raw.githubusercontent.com/Bo0oM/fuzz.txt/master/fuzz.txt
# WORDLIST
FROM builder2 as builder3
COPY --from=wordlist /temp/ /tools/wordlist/
# BUILDER GIT REPOSITORIES
FROM baseline as gitrepositories
RUN mkdir /temp
WORKDIR /temp
# Download gitGrabber
RUN \
git clone --depth 1 https://github.com/hisxo/gitGraber.git && \
# Install gitrob
wget --quiet https://github.com/michenriksen/gitrob/releases/download/v2.0.0-beta/gitrob_linux_amd64_2.0.0-beta.zip -O gitrob.zip && \
unzip gitrob.zip -d gitrob && \
rm gitrob.zip && \
# Install gitleaks
wget --quiet https://github.com/zricethezav/gitleaks/releases/download/v6.1.1/gitleaks-linux-amd64 -O gitleaks && \
chmod +x gitleaks && \
# Download github-search
git clone --depth 1 https://github.com/gwen001/github-search.git && \
# Download GitTools
git clone --depth 1 https://github.com/internetwache/GitTools.git
# GIT REPOSITORIES
FROM builder3 as builder4
COPY --from=gitrepositories /temp/ /tools/gitRepositories/
# BUILDER OWASP
FROM baseline as owasp
RUN mkdir /temp
WORKDIR /temp
# Install sqlmap
RUN \
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap && \
# Download XSStrike
git clone --depth 1 https://github.com/s0md3v/XSStrike.git && \
# Download jwt_tool
git clone --depth 1 https://github.com/ticarpi/jwt_tool.git
# Download dalfox
WORKDIR /temp/dalfox
RUN \
wget --quiet https://github.com/hahwul/dalfox/releases/download/v2.0.2/dalfox_2.0.2_linux_amd64.tar.gz -O dalfox.tar.gz && \
tar -xzf dalfox.tar.gz && \
rm dalfox.tar.gz
# Download jaeles
WORKDIR /temp/jaeles
RUN \
wget --quiet https://github.com/jaeles-project/jaeles/releases/download/beta-v0.12/jaeles-v0.12-linux-amd64.zip -O jaeles.zip && \
unzip jaeles.zip && \
rm jaeles.zip && \
mv jaeles-v0.12-linux-amd64 jaeles
# OWASP
FROM builder4 as builder5
COPY --from=owasp /temp/ /tools/owasp/
# Install kxss
RUN \
go get github.com/tomnomnom/hacks/kxss && \
# Install dalfox
ln -s /tools/owasp/dalfox/dalfox /usr/bin/dalfox && \
# Install jaeles
ln -s /tools/owasp/jaeles/jaeles /usr/bin/jaeles
# BUILDER BRUTE FORCE
FROM baseline as bruteForce
RUN mkdir /temp
WORKDIR /temp
# Download crowbar
RUN \
git clone --depth 1 https://github.com/galkan/crowbar.git && \
# Download patator
git clone --depth 1 https://github.com/lanjelot/patator.git
# BRUTE FORCE
FROM builder5 as builder6
COPY --from=bruteForce /temp/ /tools/bruteForce/
WORKDIR /tools/bruteForce/crowbar
RUN pip install -r requirements.txt
# BUILDER CRACKING
FROM baseline as cracking
RUN mkdir /temp
WORKDIR /temp
RUN \
# Download hashcat
wget --quiet https://hashcat.net/files/hashcat-6.1.1.7z -O hashcat.7z && \
7z x hashcat.7z && \
rm hashcat.7z && \
mv hashcat-6.1.1 hashcat && \
# Download john the ripper
git clone --depth 1 https://github.com/magnumripper/JohnTheRipper -b bleeding-jumbo john
# CRACKING
FROM builder6 as builder7
COPY --from=cracking /temp/ /tools/cracking/
RUN \
# Install hashcat
ln -s /tools/cracking/hashcat/hashcat.bin /usr/bin/hashcat
# Install john the ripper
WORKDIR /tools/cracking/john/src
RUN ./configure && make -s clean && make -sj4
# BUILDER OS ENUMERATION
FROM baseline as osEnumeration
RUN mkdir /temp
WORKDIR /temp
# Download htbenum
RUN git clone --depth 1 https://github.com/SolomonSklash/htbenum.git
WORKDIR /temp/htbenum
RUN \
chmod +x htbenum.sh && \
./htbenum.sh -u
# Download linux smart enumeration
WORKDIR /temp
RUN git clone --depth 1 https://github.com/diego-treitos/linux-smart-enumeration.git
WORKDIR /temp/linux-smart-enumeration
RUN chmod +x lse.sh
# Download linenum
WORKDIR /temp
RUN git clone --depth 1 https://github.com/rebootuser/LinEnum.git
WORKDIR /temp/LinEnum
RUN chmod +x LinEnum.sh
# Download enum4linux
WORKDIR /temp
RUN \
git clone --depth 1 https://github.com/CiscoCXSecurity/enum4linux.git && \
# Download enum4linx-ng
git clone https://github.com/cddmp/enum4linux-ng.git && \
# Download PEASS - Privilege Escalation Awesome Scripts SUITE
mkdir -p /temp/peass
WORKDIR /temp/peass
RUN \
latest_release_url=$(curl --silent --head https://github.com/carlospolop/PEASS-ng/releases/latest | grep "location:" | cut -d" " -f2- | sed "s/tag/download/" | tr -d '\r') && \
wget -q "${latest_release_url}/winPEASany.exe" && \
wget -q "${latest_release_url}/winPEASx64.exe" && \
wget -q "${latest_release_url}/winPEASx86.exe" && \
wget -q "${latest_release_url}/winPEAS.bat" && \
wget -q "${latest_release_url}/linpeas.sh"
# Install smbmap
WORKDIR /temp
RUN \
git clone --depth 1 https://github.com/ShawnDEvans/smbmap.git && \
# Download pspy
mkdir -p /temp/pspy
WORKDIR /temp/pspy
RUN \
wget -q https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy32 && \
wget -q https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy64 && \
chmod +x *
# OS ENUMERATION
FROM builder7 as builder8
COPY --from=osEnumeration /temp/ /tools/osEnumeration/
WORKDIR /tools/osEnumeration
# Download Windows Exploit Suggester - Next Generation
RUN git clone --depth 1 https://github.com/bitsadmin/wesng.git
WORKDIR /tools/osEnumeration/wesng
RUN python3 wes.py --update
# BUILDER EXPLOITS
FROM baseline as exploits
RUN mkdir /temp
WORKDIR /temp
# Downlaod MS17-010
RUN \
git clone --depth 1 https://github.com/worawit/MS17-010.git && \
# Downlaod AutoBlue-MS17-010
git clone --depth 1 https://github.com/3ndG4me/AutoBlue-MS17-010.git && \
# Download privexchange
git clone --depth 1 https://github.com/dirkjanm/PrivExchange.git
# EXPLOITS
FROM builder8 as builder9
COPY --from=exploits /temp/ /tools/exploits/
WORKDIR /tools/exploits
# Install searchsploit
RUN \
git clone --depth 1 https://github.com/offensive-security/exploitdb.git /opt/exploitdb && \
sed 's|path_array+=(.*)|path_array+=("/opt/exploitdb")|g' /opt/exploitdb/.searchsploit_rc > ~/.searchsploit_rc && \
ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit && \
# Install metasploit
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
chmod 755 msfinstall && \
./msfinstall && \
msfupdate
# BUILDER WINDOWS
FROM baseline as windows
RUN mkdir /temp
WORKDIR /temp
# Download crackmapexec
RUN \
git clone --recursive https://github.com/byt3bl33d3r/CrackMapExec && \
# Download Nishang
git clone --depth 1 https://github.com/samratashok/nishang.git && \
# Download juicy-potato
git clone --depth 1 https://github.com/ohpe/juicy-potato.git && \
# Download powersploit
git clone --depth 1 https://github.com/PowerShellMafia/PowerSploit.git && \
# Download Pass-the-Hash
git clone --depth 1 https://github.com/byt3bl33d3r/pth-toolkit.git && \
# Download Mimikatz
latest_release_url=$(curl --silent --head https://github.com/gentilkiwi/mimikatz/releases/latest | grep "location:" | cut -d" " -f2- | sed "s/tag/download/" | tr -d '\r') && \
wget -q "${latest_release_url}/mimikatz_trunk.zip" -O mimikatz.zip && \
unzip mimikatz.zip -d mimikatz && \
rm mimikatz.zip && \
mkdir netcat && \
mkdir plink
WORKDIR /temp/netcat
# Download netcat
RUN \
wget --quiet https://github.com/int0x33/nc.exe/raw/master/nc64.exe -O nc64.exe && \
wget --quiet https://github.com/int0x33/nc.exe/raw/master/nc.exe -O nc32.exe
WORKDIR /temp/plink
# Download plink
RUN \
wget --quiet https://the.earth.li/\~sgtatham/putty/latest/w32/plink.exe -O plink32.exe && \
wget --quiet https://the.earth.li/\~sgtatham/putty/latest/w64/plink.exe -O plink64.exe
# WINDOWS
FROM builder9 as builder10
RUN mkdir -p /tools/windows
COPY --from=windows /temp/ /tools/windows/
# BUILDER MOBILE
FROM baseline as mobile
RUN mkdir /temp
WORKDIR /temp
RUN \
# Download APKTOOL
wget --quiet https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O apktool && \
chmod +x apktool && \
wget --quiet https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.4.1.jar -O apktool.jar && \
chmod +x apktool.jar
# Mobile
FROM builder10 as builder11
COPY --from=mobile /temp/ /usr/local/bin
# OTHER RESOURCES
RUN mkdir -p /tools/otherResources
WORKDIR /tools/otherResources
# Download pentest-tools
RUN \
git clone --depth 1 https://github.com/gwen001/pentest-tools.git && \
# Download qsreplace
go get -u github.com/tomnomnom/qsreplace
# Install nuclei
RUN \
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest && \
nuclei -update-templates
# OS TUNNING
COPY shell/ /tmp
# Copy banner
RUN \
cat /tmp/banner >> /root/.zshrc && \
# Create shortcuts
cat /tmp/alias >> /root/.zshrc && \
# Copy custom function
cat /tmp/customFunctions >> /root/.zshrc && \
# Create or update a database used by locate
updatedb
# Change workdir
WORKDIR /