-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
868 lines (860 loc) · 35.8 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
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
# FROM kalilinux/kali-rolling
# FROM kalilinux/kali-bleeding-edge
FROM kalilinux/kali-last-release
# FROM kalilinux/kali-rolling
WORKDIR /root/
# AARCH64: Some packages are not available for aarch64. In this case we try to
# install the x86_64 versoin for static binaries and skip the package otherwise.
# Valid options are:
# MINI BASE DEVEL NET WEB HACK LARGE HUGE GUI ALL
# SF_PACKAGES=ALL make # All
# SF_PACKAGES=ALLALL make # All _and_ kali-linux-everything
# Default is "MINI BASE NET" (see pkg-install.sh)
ARG SF_PACKAGES
ARG GITHUB_TOKEN
ARG BESTEFFORT
COPY fs-root/sf/bin/pkg-install.sh /
RUN sed 's/^deb \(.*\)/deb \1\ndeb-src \1/g' -i /etc/apt/sources.list \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends ca-certificates
RUN /pkg-install.sh MINI apt-get install -y --no-install-recommends \
iputils-ping \
iproute2 \
lsb-release \
locales \
net-tools \
procps \
psmisc \
rsync \
vim \
zsh \
zsh-autosuggestions \
zsh-syntax-highlighting
RUN /pkg-install.sh BASE apt-get install -y --no-install-recommends \
bc \
bsdmainutils \
curl \
dos2unix \
ed \
file \
git \
gnupg \
jq \
less \
openssh-sftp-server \
pipx \
python3-pip \
screen \
sharutils \
sshfs \
subversion \
supervisor \
tmux \
unrar \
unzip \
wget \
xxd
RUN /pkg-install.sh DEVEL apt-get install -y --no-install-recommends \
automake \
binutils \
bison \
build-essential \
byacc \
cmake \
dtach \
flex \
g++ \
gawk \
gcc \
gdb \
grc \
hexedit \
html2text \
libc-devtools \
libevent-dev \
libev-dev \
libfreetype6-dev `### ft2build.h missing otherwise` \
libsodium-dev \
libssl-dev \
lz4 \
make \
musl \
musl-tools \
patch \
perl-tk \
pv \
sbcl \
source-highlight \
strace \
wdiff \
whiptail \
xterm
# x86_64 only:
RUN /pkg-install.sh DEVEL apt-get install -y --no-install-recommends \
lib32z1 \
ltrace || { [ $(uname -m) != x86_64 ] && true; }
RUN /pkg-install.sh NET apt-get install -y --no-install-recommends \
dnsutils \
ftp \
iftop \
iperf \
iperf3 \
iputils-tracepath \
man-db \
manpages-dev \
mosh \
nano \
netcat-traditional \
ntpdate \
rpcbind \
sockstat \
sudo \
tcpdump \
tcpick \
telnet \
traceroute \
wireguard-tools \
whois
RUN /pkg-install.sh HACK apt-get install -y --no-install-recommends \
adb \
apktool \
assetfinder \
dnsmap \
dnsx \
ffuf \
hydra \
gobuster \
impacket-scripts \
irssi \
lshw \
massdns \
masscan \
nbtscan \
netdiscover \
ncrack \
nmap \
onesixtyone \
oscanner \
pagekite \
pwncat \
python3-shodan \
snmpcheck \
socat \
thc-ipv6 \
tnscmd10g \
tshark \
tsocks \
upx \
webshells \
weevely
# x86_64 only
RUN /pkg-install.sh HACK apt-get install -y --no-install-recommends \
oracle-instantclient-sqlplus || { [ $(uname -m) != x86_64 ] && true; }
RUN /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
aha \
altdns \
amass \
apache2-utils \
apt-file \
apt-utils \
backdoor-factory \
bat \
clang \
cmseek \
commix \
cython3 \
dirb \
dirsearch \
dnsenum \
dnsrecon \
dstat \
duf \
elinks \
emacs \
emailharvester \
enum4linux \
evil-winrm \
`### exa yanked from kali 2024.1` \
exiftool \
fd-find \
flatpak \
fossil \
fzf \
hashcat \
highlight \
httpie \
htop \
libcurl4-openssl-dev \
libdbus-glib-1-dev \
libedit2 \
libgcc-12-dev \
libstdc++-12-dev \
libicu-dev \
libxml2-dev \
libxml2-utils \
libz3-dev \
ldap-utils \
ldapscripts \
lolcat \
jsbeautifier \
joe \
john \
lsof \
lynx \
mc \
mercurial \
mg \
mtr \
mongodb-server-core \
mono-mcs \
mono-devel \
most \
mycli \
mypager \
nfs-common \
neofetch \
neovim \
nginx \
ngrep \
nikto \
openssh-client \
p7zip-full \
peass \
pip \
proxychains \
python2-minimal \
python-is-python3 \
python3-bitcoinlib \
python3-cheroot \
python3-confuse \
python3-decouple \
python3-dotenv \
python3-dotenv-cli \
python3-full \
python3-scapy \
python3-poetry \
`### python3-pwntools yanked from kali2024.1` \
python3-pwntools \
python3-pyaudio \
python3-pygments \
python3-pyte \
python3-python-telegram-bot \
python3-venv \
python3-virtualenv \
python3-ipython \
python3-all-dev \
python3-schedule \
python3-setuptools \
python3-telethon \
python-all-dev \
radare2 \
recon-ng \
redis-tools \
rclone \
rlwrap \
smbclient \
smbmap \
snmp \
speedtest-cli \
sqsh \
sslscan \
sshpass \
ssh-audit \
sublist3r \
syncthing \
syncthing-relaysrv \
theharvester \
tmate \
tree \
`### torsocks ### yanked from kali2024` \
urlcrazy \
uvicorn \
w3m \
wafw00f \
weechat weechat-plugins weechat-matrix \
whatweb \
wipe \
wpscan \
wrk \
xdg-utils \
xfce4 xfce4-goodies dbus-x11 x11-xserver-utils \
xmlstarlet \
xsltproc \
xvfb \
zlib1g-dev \
zoxide
# x86_64 only:
RUN /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
dotnet-runtime-6.0 \
eyewitness || { [ $(uname -m) != x86_64 ] && true; }
RUN /pkg-install.sh WEB apt-get install -y --no-install-recommends \
pelican
RUN /pkg-install.sh HUGE apt-get install -y --no-install-recommends \
bloodhound \
chromium \
cutycapt \
default-jdk \
exploitdb \
gem \
golang \
npm \
nodejs \
php \
pkg-config \
ripgrep \
rust-all \
ruby \
rubygems
# x86_64 only
RUN /pkg-install.sh HUGE apt-get install -y --no-install-recommends \
veil || { [ $(uname -m) != x86_64 ] && true; }
RUN /pkg-install.sh HUGE apt-get install -y --no-install-recommends \
seclists
RUN /pkg-install.sh HUGE apt-get install -y --no-install-recommends \
cloud-image-utils \
debootstrap \
libguestfs-tools \
qemu-efi-aarch64 \
qemu-efi-arm \
qemu-system \
qemu-user \
qemu-utils \
u-boot-qemu
RUN /pkg-install.sh ALLALL apt-get install -y kali-linux-everything
## Everything above here should be stable and not modified (or a full rebuild will occur)
#########################################################################################
RUN /pkg-install.sh HUGE bash -c 'mkdir /usr/muslcc; \
muslinstall() { \
local n; \
n="${1}-linux-musl${2}"; \
echo "[muslCC] Installing ${n}..."; \
curl -fsSL "https://musl.cc/${n}-cross.tgz" | tar xfz - -C /usr/muslcc || return; \
ln -s "../muslcc/${n}-cross/bin/${n}-gcc" "/usr/bin/${n}-gcc"; \
ln -s "${n}-gcc" "/usr/bin/gcc-${1}-linux"; \
ln -s "${n}-gcc" "/usr/bin/musl-gcc-${1}-linux"; \
}; \
muslinstall "aarch64" ""; \
muslinstall "arm" "eabi"; \
muslinstall "armv7l" "eabihf"; \
muslinstall "armv6" "eabi"; \
muslinstall "i686" ""; \
muslinstall "x86_64" ""; \
muslinstall "mips64" ""; \
muslinstall "mips64el" ""; \
muslinstall "mips" "sf"; \
muslinstall "mipsel" "sf"; \
muslinstall "powerpc" ""; \
muslinstall "powerpcle" ""; \
muslinstall "powerpc64" ""; \
muslinstall "powerpc64le" ""'
RUN /pkg-install.sh GUI bash -c '{ cd /tmp \
&& curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg \
&& wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg >/dev/null \
&& wget -qO - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg >/dev/null \
&& echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" >/etc/apt/sources.list.d/brave-browser-release.list \
&& echo "deb https://download.sublimetext.com/ apt/stable/" | tee /etc/apt/sources.list.d/sublime-text.list \
&& echo "deb https://packages.microsoft.com/repos/vscode stable main" | tee /etc/apt/sources.list.d/microsoft.list \
&& apt-get update; }' \
&& /pkg-install.sh GUI apt-get install -y --no-install-recommends \
alacritty \
aqemu \
awesome \
brave-browser \
evince \
`###eterm kali-2024 yanked` \
enlightenment-data \
fluxbox \
fonts-noto-color-emoji \
fonts-symbola \
`### geany kali-2024 yanked` \
gimp \
gnome \
gnome-terminal \
kate \
kitty \
konsole \
libreoffice \
ncurses-term \
pidgin \
qemu-system-gui \
remmina remmina-plugin-rdp remmina-plugin-vnc remmina-plugin-secret remmina-plugin-exec remmina-plugin-kwallet remmina-plugin-python remmina-plugin-www remmina-plugin-x2go \
qterminal `### needs RSS 80mb of memory` \
rxvt-unicode \
sublime-text \
syncthing-gtk \
terminator \
tigervnc-standalone-server \
`###tilix kali-2024 yanked` \
wireshark \
x11vnc \
x11-xserver-utils \
xterm \
xorg \
xrdp
# x86_64 only
RUN /pkg-install.sh GUI apt-get install -y --no-install-recommends \
code || { [ $(uname -m) != x86_64 ] && true; }
RUN /pkg-install.sh GUI apt-get install -y --no-install-recommends \
`### xpra ### Using Xpra repo instead` \
libavformat60 \
libavif16 \
libjs-jquery-ui \
`###libprocps8 ### yanked from Kali` \
libqrencode4 \
libxres1 \
libxtst6 \
libswscale7 \
libturbojpeg0 \
gir1.2-gtk-3.0 \
python3-cairo \
python3-gi \
python3-gi-cairo \
python3-opengl \
python3-pil \
python3-rencode \
xserver-xorg-video-dummy \
xvfb
# Everything below here will overwrite packages already installed by apt-get.
#############################################################################
### 2023-02: xpra has been yanked. the non-beta is broken on kali (and also conflicts with libprocps8)
# RUN /pkg-install.sh GUI bash -c '{ `### only Beta has no conflict with python 3.11.3 and libprocps8` \
# && wget -O "/usr/share/keyrings/xpra-2022.gpg" https://xpra.org/xpra-2022.gpg \
# && wget -O "/etc/apt/sources.list.d/xpra-beta.list" https://xpra.org/repos/bookworm/xpra-beta.list \
# && apt-get update \
# && pkg=("xpra" "xpra-html5") \
# && { [[ $HOSTTYPE != aarch64 ]] && pkg+=("xpra-x11"); true; `### x86_64 only`; } \
# && apt-get install -y --no-install-recommends "${pkg[@]}" \
# && rm -f /var/lib/apt/lists/xpra*; }'
### 2023-06: https://github.com/Xpra-org/xpra/issues/3863
# RUN /pkg-install.sh GUI bash -c '{ : \
# && wget -O "/usr/share/keyrings/xpra.asc" https://xpra.org/xpra-2023.asc \
# && wget -O "/etc/apt/sources.list.d/xpra-beta.sources" https://raw.githubusercontent.com/Xpra-org/xpra/master/packaging/repos/bookworm/xpra-beta.sources \
# && apt-get update \
# && pkg=("xpra" "xpra-html5") \
# && { [[ $HOSTTYPE != aarch64 ]] && pkg+=("xpra-x11"); true; `### x86_64 only`; } \
# && apt-get install -y --no-install-recommends "${pkg[@]}" \
# && rm -f /var/lib/apt/lists/xpra*; }'
### 2023-07: beta is badly synced
### E: Failed to fetch https://xpra.org/beta/bookworm/main/binary-amd64/Packages.gz File has unexpected size (41831 != 39348). Mirror sync in progress? [IP: 78.129.163.65 443]
# RUN /pkg-install.sh GUI bash -c '{ : \
# && wget -O "/usr/share/keyrings/xpra.asc" https://xpra.org/xpra-2023.asc \
# && wget -O "/etc/apt/sources.list.d/xpra.sources" https://raw.githubusercontent.com/Xpra-org/xpra/master/packaging/repos/bookworm/xpra.sources \
# && apt-get update \
# && pkg=("xpra" "xpra-x11" "xpra-html5") \
# && apt-get install -y --no-install-recommends "${pkg[@]}" \
# && rm -f /var/lib/apt/lists/xpra*; }'
# 2024-03-15 - xpra depends on version of libopenh264 which is not available on kali2024.1
# RUN /pkg-install.sh GUI apt-get install -y xpra ## kali 2024 YANKED, bad libvpx7 dependencies
### x86_64 only
RUN /pkg-install.sh GUI bash -c '{ [[ $HOSTTYPE != x86_64 ]] && exit 0; cd /usr/lib \
&& curl -sf https://download-installer.cdn.mozilla.net/pub/firefox/releases/108.0.1/linux-x86_64/en-US/firefox-108.0.1.tar.bz2 | tar xfvj - \
&& ln -s /usr/lib/firefox/firefox /usr/bin/firefox; }'
RUN /pkg-install.sh GUI bash -c '{ true; \
rm -f /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources; \
apt-get update ; }'
RUN /pkg-install.sh HUGE ghbin SagerNet/sing-box 'linux-%arch:x86_64=amd64:aarch64=arm64%.' sing-box \
&& /pkg-install.sh HACK bin 'https://api.localxpose.io/api/v2/downloads/loclx-linux-%arch1%.zip' loclx \
&& /pkg-install.sh HACK bin 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-%arch1%.tgz' ngrok \
&& /pkg-install.sh HUGE ghbin tomnomnom/waybackurls 'linux-amd64-' waybackurls \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/projectdiscovery/cdncheck/cmd/cdncheck@latest; }' \
&& /pkg-install.sh HACK ghbin projectdiscovery/asnmap 'linux_%arch1%.zip$' asnmap \
&& /pkg-install.sh HACK ghbin projectdiscovery/chaos-client 'linux_%arch1%.zip$' chaos-client /usr/bin chaos \
&& /pkg-install.sh HACK ghbin projectdiscovery/httpx 'linux_%arch1%.zip$' httpx \
&& /pkg-install.sh HACK ghbin projectdiscovery/katana 'linux_%arch1%.zip$' katana \
&& /pkg-install.sh HACK ghbin projectdiscovery/naabu 'linux_amd64.zip$' naabu `### x86_64 only` \
&& /pkg-install.sh HACK ghbin projectdiscovery/nuclei 'linux_%arch1%.zip$' nuclei \
&& /pkg-install.sh HACK ghbin projectdiscovery/pdtm 'linux_%arch1%.zip$' pdtm \
&& /pkg-install.sh HACK ghbin projectdiscovery/proxify 'linux_%arch1%.zip$' proxify \
&& /pkg-install.sh HACK ghbin projectdiscovery/shuffledns '_linux_%arch1%.zip$' shuffledns \
&& /pkg-install.sh HACK ghbin projectdiscovery/subfinder 'linux_%arch1%.zip$' subfinder \
&& /pkg-install.sh HACK ghbin projectdiscovery/tlsx 'linux_%arch1%.zip$' tlsx \
&& /pkg-install.sh HACK ghbin projectdiscovery/uncover 'linux_%arch1%.zip$' uncover \
&& /pkg-install.sh HACK ghbin s0md3v/smap 'linux_%arch1%.tar.xz$' smap
RUN /pkg-install.sh LARGE ghbin Peltoche/lsd 'lsd_.*_%arch:x86_64=amd64:aarch64=arm64%.deb$' \
&& /pkg-install.sh LARGE ghbin cloudflare/cloudflared 'linux-%arch:x86_64=amd64:aarch64=arm64%.deb$' \
&& /pkg-install.sh LARGE ghbin filebrowser/filebrowser '^linux-%arch:x86_64=amd64:aarch64=arm64%-filebrowser.tar.gz$' filebrowser \
&& /pkg-install.sh LARGE ghbin cheat/cheat 'linux-%arch:x86_64=amd64:aarch64=arm64%.gz$' cheat \
&& /pkg-install.sh LARGE ghbin sensepost/gowitness 'linux-%arch:x86_64=amd64:aarch64=arm64%$' gowitness \
&& /pkg-install.sh LARGE ghbin t3rm1n4l/megacmd 'linux_%arch:x86_64=amd64:aarch64=arm64%.zip$' megacmd \
&& /pkg-install.sh HACK ghbin ropnop/kerbrute 'linux_amd64$' kerbrute `# x86_64 only` \
&& /pkg-install.sh HACK bash -c '{ git clone --depth 1 https://github.com/hmgle/graftcp.git \
&& make -C graftcp install; }' \
&& /pkg-install.sh HACK ghbin tomnomnom/anew 'linux-amd64' anew `# x86_64 only` \
&& /pkg-install.sh HACK ghbin lc/gau 'linux_amd64.tar.gz$' gau `# x86_64 only` \
&& /pkg-install.sh HACK ghbin praetorian-inc/fingerprintx 'linux_%arch:x86_64=amd64:aarch64=arm64%.tar.gz$' fingerprintx \
&& /pkg-install.sh HACK ghbin dwisiswant0/ppfuzz '-%arch%-unknown.*tar.gz' ppfuzz \
&& /pkg-install.sh HACK ghbin Edu4rdSHL/unimap 'unimap-%arch:x86_64=linux:aarch64=aarch64%' unimap \
&& /pkg-install.sh LARGE ghbin denisidoro/navi '%arch%-unknown-linux' navi \
&& /pkg-install.sh LARGE ghbin d3mondev/puredns 'inux-%arch:x86_64=amd64:aarch64=arm64%' puredns \
&& /pkg-install.sh LARGE bash -c '{ GOBIN=/usr/bin go install github.com/subfinder/goaltdns@latest; }' \
&& /pkg-install.sh LARGE bash -c '{ curl -sf https://gobinaries.com/asciimoo/wuzz | PREFIX=/usr/bin sh; }' \
&& /pkg-install.sh LARGE bash -c '{ curl -sf https://gobinaries.com/gwen001/github-subdomains | PREFIX=/usr/bin sh; }' \
&& /pkg-install.sh LARGE bash -c '{ mkdir -p /usr/share/cheatsheets/community \
&& git clone --depth 1 https://github.com/cheat/cheatsheets.git /usr/share/cheatsheets/community; }' \
&& /pkg-install.sh HACK bash -c '{ cd /usr/share/nmap/scripts \
&& git clone --depth 1 https://github.com/scipag/vulscan; }'
RUN /pkg-install.sh HUGE ghbin pwndbg/pwndbg '_%arch1%.deb$'
### x86_64 only
# RUN /pkg-install.sh HUGE bash -c '{ [[ $HOSTTYPE != x86_64 ]] && exit 0; cd /usr/share \
# && git clone --depth 1 https://github.com/pwndbg/pwndbg \
# && cd pwndbg \
# && apt-get install -y --no-install-recommends python3-dev python3-setuptools libglib2.0-dev libc6-dbg \
# && ./setup.sh \
# && echo "source /usr/share/pwndbg/gdbinit.py" >>/etc/gdb/gdbinit \
# && mkdir -p /usr/src/glibc \
# && cd /usr/src/glibc \
# && apt-src install glibc \
# && echo "directory \$cdir:\$cwd:$(find /usr/src/glibc -maxdepth 1 -type d | tail -n1)" >>/etc/gdb/gdbinit \
# && { dpkg --force-architecture --remove-architecture i386; \
# rm -f /var/lib/apt/lists/*-i386*; apt-get update; } \
# && echo DONE; }'
RUN /pkg-install.sh HACK apt-get install -y --no-install-recommends \
bloodhound.py \
`# python3-certipy CONFLICT with kali certipy4.0.1` \
python3-colorama \
crackmapexec \
netexec \
python3-avahi \
python3-dnspython \
hashid \
python3-netaddr \
python3-pycryptodome \
python3-pyinotify \
python3-requests \
sqlmap \
python3-termcolor \
python3-tldextract \
python3-urllib3 \
python3-zeroconf \
&& /pkg-install.sh HACK bin https://raw.githubusercontent.com/fullhunt/log4j-scan/master/log4j-scan.py log4j-scan
RUN /pkg-install.sh HACK apt-get install -y --no-install-recommends \
python3-aiohttp \
`###python3-discord yanked kali2024.1` \
python3-harmony \
python3-irc
RUN /pkg-install.sh HACK pipx install aort \
&& /pkg-install.sh HACK pipx install arsenal-cli \
&& /pkg-install.sh HACK pipx install bbrf \
&& /pkg-install.sh HACK pipx install git+https://github.com/vortexau/dnsvalidator \
&& /pkg-install.sh HACK pipx install git-dumper \
&& /pkg-install.sh HACK pipx install git+https://github.com/r0oth3x49/ghauri \
&& /pkg-install.sh HACK pipx install greynoise \
&& /pkg-install.sh HACK pipx install h8mail \
&& /pkg-install.sh HACK pipx install holehe \
&& /pkg-install.sh HACK pipx install git+https://github.com/codingo/Interlace \
&& /pkg-install.sh HACK pipx install git+https://github.com/soxoj/maigret `### 2023-03-07 pipx repo fails on aiohttp/longintrepr.h` \
&& /pkg-install.sh HACK pipx install raccoon-scanner \
&& /pkg-install.sh HACK pipx install git+https://github.com/EntySec/Shreder \
&& /pkg-install.sh HACK pipx install trevorspray \
&& /pkg-install.sh HACK pipx install userefuzz \
&& /pkg-install.sh HACK pipx install webtech \
&& /pkg-install.sh DEVEL pipx install dulwich \
&& /pkg-install.sh DEVEL pipx install names \
&& /pkg-install.sh DEVEL pipx install Red-DiscordBot
RUN /pkg-install.sh WEB bash -c '{ apt-get remove -y pelican; true; }' \
&& /pkg-install.sh WEB pipx install 'grip' \
&& /pkg-install.sh WEB pipx install 'pelican[Markdown]' `### apt/pelican causes missing /onion/theme directory` \
&& /pkg-install.sh WEB pipx install 'tiny-http-server'
RUN /pkg-install.sh DEVEL pip install --break-system-packages \
cryptocode \
ipaddress \
mmh3 `# FavFreak` \
pyTelegramBotAPI \
tgcrypto \
uploadserver \
wsgidav
RUN /pkg-install.sh DEVEL pip install \
`# aiogram YANKED kali2024` \
aospdtgen \
booru \
discum \
disnake \
donna25519 \
heroku3 \
jishaku \
`# lastversion YANKED kali2024` \
libgen_api \
openai \
pyrogram \
python-json-logger \
python-nmap \
telegram \
timer
RUN /pkg-install.sh LARGE pipx install gdown \
&& /pkg-install.sh LARGE pipx install udocker
RUN /pkg-install.sh LARGE bin 'https://gitlab.com/api/v4/projects/32089582/packages/generic/geonet-rs/0.4.4/geonet_0.4.4_%arch:x86_64=x86_64:DEFAULT=SKIP%.deb' `# x86_64 only` \
&& /pkg-install.sh MINI bash -c "{ [[ -f /usr/share/locale/locale.alias ]] && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8; }" \
&& /pkg-install.sh DEVEL bash -c '{ arch=amd64; [[ $HOSTTYPE == "aarch64" ]] && arch=arm64; apt-get install -y --no-install-recommends linux-headers-${arch}; }'
### After 0.4.3a release
#RUN /pkg-install.sh GAMES apt-get install -y --no-install-recommends \
# pacman4console YANKED kali2024
RUN /pkg-install.sh EMU apt-get install -y --no-install-recommends \
dosbox \
fs-uae fs-uae-arcade \
vice
RUN /pkg-install.sh DEVEL apt-get install -y --no-install-recommends \
clojure \
leiningen
RUN /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
cron \
cups-client \
byobu \
fish \
krb5-user \
krb5-config \
parallel \
ranger \
sshuttle
RUN /pkg-install.sh HUGE apt-get install -y --no-install-recommends \
gopls \
golang-golang-x-tools \
gobjc++-mingw-w64-i686-posix gobjc++-mingw-w64-i686-win32 gobjc-mingw-w64-i686-posix gobjc-mingw-w64-i686-win32 \
maven \
rust-src
RUN /pkg-install.sh HACK ghbin shadow1ng/fscan 'fscan%arch:x86_64=:aarch64=_arm64%$' fscan \
&& /pkg-install.sh HACK ghbin 'theaog/spirit' 'spirit%arch:x86_64=:DEFAULT=SKIP%.tgz$' spirit `# x86_64 only, spirit-arm bad` \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/tomnomnom/gf@latest \
&& mkdir -p /usr/share/gf \
&& git clone --depth 1 https://github.com/tomnomnom/gf.git /tmp/gf \
&& mv /tmp/gf/examples/*.json /usr/share/gf \
&& mv /tmp/gf/gf-completion.* /usr/share/gf \
&& rm -rf /tmp/gf \
&& git clone --depth 1 https://github.com/1ndianl33t/Gf-Patterns.git /tmp/gf \
&& mv /tmp/gf/*.json /usr/share/gf; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/tomnomnom/hacks/inscope@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/Emoe/kxss@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/Josue87/analyticsrelationships@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/Josue87/gotator@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/Josue87/roboxtractor@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/six2dez/ipcdn@latest; }' \
&& /pkg-install.sh HACK bash -c '{ git clone --depth 1 https://github.com/ameenmaali/urldedupe.git \
&& cd urldedupe \
&& cmake . \
&& make \
&& cp urldedupe /usr/bin; }' \
&& /pkg-install.sh HACK bash -c '{ git clone --depth 1 https://github.com/urbanadventurer/username-anarchy.git /opt/username-anarchy \
&& rm -rf /opt/username-anarchy/.git*; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/damit5/gitdorks_go@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/trickest/dsieve@master; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/trickest/enumerepo@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/lobuhi/byp4xx@latest; }' \
&& /pkg-install.sh HACK bash -c '{ GOBIN=/usr/bin go install github.com/Hackmanit/Web-Cache-Vulnerability-Scanner@latest && ln -s Web-Cache-Vulnerability-Scanner /usr/bin/wcvs; }' \
&& /pkg-install.sh HACK ghbin tomnomnom/qsreplace 'linux-amd64' qsreplace `# x86_64 only` \
&& /pkg-install.sh HACK ghbin tomnomnom/unfurl 'linux-amd64' unfurl `# x86_64 only` \
&& /pkg-install.sh HACK ghbin tomnomnom/gron 'linux-%arch:x86_64=amd64:aarch64=arm64%-' gron \
&& /pkg-install.sh HACK ghbin tomnomnom/meg 'linux-amd64-' meg `# x86_64 only` \
&& /pkg-install.sh HACK ghbin projectdiscovery/alterx '_linux_%arch:x86_64=amd64:aarch64=arm64%' alterx \
&& /pkg-install.sh HACK ghbin projectdiscovery/notify 'linux_%arch:x86_64=amd64:aarch64=arm64%' notify \
&& /pkg-install.sh HACK ghbin projectdiscovery/interactsh 'linux_%arch:x86_64=amd64:aarch64=arm64%' interactsh-client \
&& /pkg-install.sh HACK bin 'https://github.com/projectdiscovery/mapcidr/releases/download/v1.1.9/mapcidr_1.1.9_linux_%arch1%.zip' mapcidr `# often missing binary assets.` \
&& /pkg-install.sh HACK ghbin glebarez/cero 'linux-amd64' cero `# x86_64 only` \
&& /pkg-install.sh HACK ghbin dwisiswant0/crlfuzz 'inux_%arch:x86_64=amd64:aarch64=arm64%' crlfuzz \
&& /pkg-install.sh HACK ghbin hahwul/dalfox 'inux_%arch:x86_64=amd64:aarch64=arm64%' dalfox \
&& /pkg-install.sh HACK ghbin pwnesia/dnstake 'linux_%arch:x86_64=amd64:aarch64=arm64%' dnstake \
&& /pkg-install.sh HACK ghbin KathanP19/Gxss 'inux_x86_64' Gxss `# x86_64 only` \
&& /pkg-install.sh HACK ghbin qsocket/qs-netcat 'linux_%arch:x86_64=amd64:aarch64=arm64%' qs-netcat \
&& /pkg-install.sh HACK ghbin shenwei356/rush 'linux_%arch:x86_64=amd64:aarch64=arm64%' rush \
&& /pkg-install.sh HACK ghbin lc/subjs 'linux_amd64' subjs `# x86_64 only` \
&& /pkg-install.sh HACK bash -c '{ curl -sf https://gobinaries.com/gwen001/gitlab-subdomains | PREFIX=/usr/bin sh; }' \
&& /pkg-install.sh HACK bash -c '{ curl -sf https://gobinaries.com/gwen001/github-endpoints | PREFIX=/usr/bin sh; }'
RUN /pkg-install.sh GUI apt-get install -y --no-install-recommends \
hexchat \
i3 \
jupyter \
pavucontrol \
pulseaudio \
`# telegram-desktop YANKED kali2024` \
tigervnc-tools \
&& /pkg-install.sh GUI npm install -g carbonyl
RUN /pkg-install.sh GUI bash -c '{ curl -SsfL https://telegram.org/dl/desktop/linux | tar Jxvf - --transform="flags=r;s|.*/||" --no-anchored -C "/usr/bin/" --wildcards Telegram/Telegram; }'
RUN /pkg-install.sh WEB apt-get install -y --no-install-recommends \
libnginx-mod-http-auth-pam \
libnginx-mod-http-brotli-filter \
libnginx-mod-http-brotli-static \
libnginx-mod-http-cache-purge \
libnginx-mod-http-dav-ext \
libnginx-mod-http-echo \
libnginx-mod-http-fancyindex \
libnginx-mod-http-geoip \
libnginx-mod-http-geoip2 \
libnginx-mod-http-headers-more-filter \
libnginx-mod-http-image-filter \
libnginx-mod-http-js \
libnginx-mod-http-lua \
libnginx-mod-http-memc \
libnginx-mod-http-modsecurity \
libnginx-mod-http-ndk \
libnginx-mod-http-ndk-dev \
libnginx-mod-http-perl \
libnginx-mod-http-set-misc \
libnginx-mod-http-srcache-filter \
libnginx-mod-http-subs-filter \
libnginx-mod-http-uploadprogress \
libnginx-mod-http-upstream-fair \
libnginx-mod-http-xslt-filter \
libnginx-mod-mail \
libnginx-mod-nchan \
libnginx-mod-rtmp \
libnginx-mod-stream \
libnginx-mod-stream-geoip \
libnginx-mod-stream-geoip2 \
libnginx-mod-stream-js \
njs
RUN /pkg-install.sh DEV apt-get install -y --no-install-recommends \
gengetopt \
libgmp3-dev \
libjson-c-dev \
libunistring-dev \
ninja-build \
repo
# Android build tools:
RUN /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
aria2 \
buildtorrent \
caddy \
ccache \
expat \
evilginx2 \
ffmpeg \
git-lfs \
icecream icecream-sundae icecc icecc-monitor \
lftp \
libmpc-dev libmpfr-dev libncurses-dev libsdl1.2-dev \
'^lzma.*' '^liblz4-.*' '^liblzma.*' \
libfdk-aac2 libdav1d-dev libvorbis-dev libopus-dev libmp3lame-dev libfdk-aac-dev libx264-dev libx265-dev libxvidcore-dev libvpx-dev libspeex-dev libsox-dev libsoxr-dev \
libxml-simple-perl libswitch-perl \
lzip \
lzop \
`### magic-wormhole yanked kali2024-07` \
mediainfo \
`# ncftp yanked kali2024` \
patchelf \
pngcrush \
pngquant \
re2c \
schedtool \
`### 'softether-*' yanked kali2024` \
sysbench \
texinfo \
yt-dlp \
&& /pkg-install.sh LARGE bash -c '{ apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys B5A08F01796E7F521861B449372D1FF271F2DD50 \
&& echo "deb http://deb.ooni.org/ unstable main" | tee /etc/apt/sources.list.d/ooniprobe.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends ooniprobe-cli \
&& rm /etc/apt/sources.list.d/ooniprobe.list \
&& apt-get update; }' \
&& /pkg-install.sh LARGE ghbin zellij-org/zellij '%arch%.*linux.*tar.gz$' zellij \
&& /pkg-install.sh LARGE ghbin jkfran/killport '%arch%-linux' killport
# x86_64 only
RUN /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
g++-multilib \
gcc-multilib \
lib32ncurses-dev lib32z1-dev || { [ $(uname -m) != x86_64 ] && true; }
RUN /pkg-install.sh HACK ghbin wader/fq '_linux_%arch1%' fq \
&& /pkg-install.sh HACK bin https://raw.githubusercontent.com/nitefood/asn/master/asn asn2 \
&& /pkg-install.sh HACK bin https://raw.githubusercontent.com/trustedsec/hardcidr/master/hardCIDR.sh hardcidr \
&& /pkg-install.sh HACK ghbin hahwul/dalfox '_linux_%arch1%' dalfox
RUN /pkg-install.sh NET ghbin hackerschoice/gsocket '_%arch%.deb' \
&& /pkg-install.sh NET ghbin ginuerzh/gost 'linux-%arch:x86_64=amd64:aarch64=armv8%.*gz$' gost \
&& /pkg-install.sh NET ghbin tulir/gomuks 'linux-%arch1%' gomuks \
&& /pkg-install.sh NET ghbin Snawoot/hola-proxy 'linux-%arch1%' hola-proxy \
&& /pkg-install.sh NET ghbin maxmind/mmdbinspect 'linux_amd64.tar.gz$' mmdbinspect `# x86_64 only` \
&& /pkg-install.sh NET ghbin shadowsocks/shadowsocks-rust '%arch%-unknown-linux-musl.tar' \
&& /pkg-install.sh NET ghbin shadowsocks/v2ray-plugin 'linux-%arch1%' 'v2ray-plugin_*' "" v2ray-plugin \
&& /pkg-install.sh NET ghbin teddysun/xray-plugin 'linux-%arch1%' 'xray-plugin_*' "" xray-plugin \
&& /pkg-install.sh NET ghbin KaranGauswami/socks-to-http-proxy 'sthp-linux' sthp `# x86_64 only` \
&& /pkg-install.sh NET ghbin schollz/croc 'Linux-%arch:x86_64=64bit:aarch64=ARM64%' croc \
&& /pkg-install.sh NET ghbin vi/websocat '%arch%.*linux-musl' websocat \
&& /pkg-install.sh NET ghbin ViRb3/wgcf 'linux_%arch1%$' wgcf \
&& /pkg-install.sh NET ghbin poscat0x04/wgcf-teams '-linux' wgcf-teams \
&& /pkg-install.sh NET apt-get install -y --no-install-recommends \
grepcidr \
hping3 \
ipcalc ipcalc-ng \
microsocks \
tinyproxy
# gophish vommits user-data into the system-wide install directory. Unix
# doesnt work like this. Impossible to install system-wide. Instead each user
# shall check out his own. No system-wide install for gophish. Sorry. Someone
# give gophish a helping hand or send them a Unix manual...
RUN /pkg-install.sh LARGE ghdir gophish/gophish 'linux-64bit.zip$' /usr/gophish `# x86_64 only` \
&& bash -c '{ [[ ! -d /usr/gophish ]] && exit 0; chmod 755 /usr/gophish/gophish \
&& echo -e "#! /bin/bash\ncd /usr/gophish && exec ./gophish \"\$@\"" >/usr/bin/gophish \
&& chmod 755 /usr/bin/gophish; }'
RUN /pkg-install.sh HUGE pipx install bbot
RUN /pkg-install.sh HUGE npm install -g wscat
RUN /pkg-install.sh HUGE bash -c 'mkdir -p /usr/share/wordlists; curl -fsSL https://crackstation.net/files/crackstation-human-only.txt.gz | gunzip >/usr/share/wordlists/crackstation-human-only.txt'
RUN /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
bpytop \
btop \
db-util \
haproxy \
ncdu \
pass
RUN /pkg-install.sh GUI apt-get install -y --no-install-recommends \
alsa-utils \
alsamixergui \
keepass2 \
`### libgtkglext1 # yanked kali2024, # Needed for AnyDesk` \
qasmixer
RUN /pkg-install.sh GUI bin 'http://ftp.de.debian.org/debian/pool/main/g/gtkglext/libgtkglext1_1.2.0-11_%arch1%.deb'
RUN /pkg-install.sh GUI bin 'https://download.anydesk.com/linux/anydesk_6.3.2-1_%arch1%.deb'
RUN /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
php-curl \
php-fpm \
php-xml
RUN /pkg-install.sh HACK ghbin ekzhang/bore '%arch:aarch64=arm%-unknown-linux' \
&& pipx install git+https://github.com/bluet/proxybroker2.git \
&& /pkg-install.sh HACK pipx install pwncat-cs \
&& /pkg-install.sh HACK ghbin praetorian-inc/noseyparker '%arch%-unknown-linux-' bin/noseyparker '' noseyparker \
&& /pkg-install.sh HACK bin 'https://gitlab.com/api/v4/projects/33695681/packages/generic/nrich/latest/nrich_latest_amd64.deb' `# x86_64 only` \
&& /pkg-install.sh HACK bin 'https://github.com/RustScan/RustScan/releases/download/2.0.1/rustscan_2.0.1_amd64.deb' `# x86_64 only` \
&& /pkg-install.sh HACK bin 'https://github.com/xaitax/SploitScan/raw/main/sploitscan.py' sploitscan \
&& /pkg-install.sh HACK ghbin hueristiq/xurlfind3r 'linux_%arch:x86_64=amd64:aarch64=arm64%' xurlfind3r
RUN /pkg-install.sh LARGE ghbin PaddiM8/kalker 'linux' kalker \
&& /pkg-install.sh LARGE ghbin obsidianmd/obsidian-releases 'amd64.deb' \
&& /pkg-install.sh LAREGE ghbin bvaisvil/zenith 'x86_64-unknown-linux-musl.tgz' zenith
## YANKED. Already in apt-get install powershell/pkg-install.sh LARGE ghbin PowerShell/PowerShell 'deb_%arch1%.deb'
RUN /pkg-install.sh LARGE bash -c '{ curl -fsSL https://bun.sh/install | BUN_INSTALL=/usr bash; }'
RUN /pkg-install.sh HACK bash -c '{ wget -O "/usr/bin/favfreak.py" https://raw.githubusercontent.com/devanshbatham/FavFreak/master/favfreak.py \
&& chmod 755 /usr/bin/favfreak.py \
&& ln -s favfreak.py /usr/bin/FavFreak; }' \
&& /pkg-install.sh HACK bash -c '{ mkdir /usr/share/wordlists/meg \
&& wget -O /usr/share/wordlists/meg/openredirects "https://raw.githubusercontent.com/tomnomnom/meg/master/lists/openredirects" \
&& wget -O /usr/share/wordlists/meg/configfiles "https://raw.githubusercontent.com/tomnomnom/meg/master/lists/configfiles" \
&& wget -O /usr/share/wordlists/meg/crlfinjection "https://raw.githubusercontent.com/tomnomnom/meg/master/lists/crlfinjection"; }'
RUN /pkg-install.sh DEV ghbin helix-editor/helix '-%arch%-linux.tar.xz' hx \
&& /pkg-install.sh DEV ghbin dandavison/delta '_%arch1%.deb' \
&& /pkg-install.sh DEV ghbin watchexec/watchexec '%arch%-unknown-linux-musl.deb' '' '' '' --force-overwrite
RUN /pkg-install.sh HACK pipx install yxdump \
&& /pkg-install.sh HACK ghbin hackerschoice/dsniff 'linux-%arch%' dsniff "/usr/sbin" \
&& /pkg-install.sh HACK ghbin lwthiker/curl-impersonate 'curl-impersonate.*%arch%-linux' \
&& /pkg-install.sh HACK bin https://paste.c-net.org/pbenc pbenc \
&& /pkg-install.sh LARGE ghbin sqlectron/sqlectron-gui '_amd64.deb' \
&& /pkg-install.sh HACK pip install xortool `#pipx install yields No module named 'importlib_metadata'` \
&& /pkg-install.sh HACK pip install --no-deps --force-reinstall art git+https://github.com/Revoltsecurities/Subdominator
RUN /pkg-install.sh GUI apt-get install -y --no-install-recommends \
dolphin \
kdegraphics-thumbnailers \
kio-extras \
thunderbird
RUN /pkg-install.sh DEV apt-get install -y --no-install-recommends \
idn2 \
maildir-utils \
mpack \
mb2md
RUN /pkg-install.sh HUGE ghbin microsoft/go-sqlcmd 'linux-%arch1%.tar.bz2' sqlcmd
RUN /pkg-install.sh HACK ghbin kitabisa/mubeng '_linux_%arch1%' mubeng
RUN sed 's/deb-src.*//' -i /etc/apt/sources.list \
&& apt-get autoremove -y \
&& apt-get update
# Keep the apt/lists in case user does an apt update -y
#RUN rm -rf /var/lib/apt/lists/*
# Do fs-root last (on vmbox it messes with permissions on directories and setup.sh fixes it)
COPY setup.sh gitconfig-stub /fs-root/ /
# Some tools are pre-compiled on existing segfaults and supplied as binary
# (Mostly tools which are a bitch to build during 'docker build')
COPY /fs-root-amd64/ /
RUN /setup.sh \
&& rm -f /setup.sh /gitconfig-stub /pkg-install.sh
CMD ["zsh", "-il"]