2022-03-05 13:17:15 +00:00
|
|
|
FROM kalilinux/kali-rolling
|
|
|
|
|
|
|
|
WORKDIR /root/
|
2022-08-09 22:09:50 +00:00
|
|
|
|
2022-09-17 18:39:19 +00:00
|
|
|
# Valid options are:
|
2022-10-12 16:45:46 +00:00
|
|
|
# MINI BASE DEVEL NET WEB HACK LARGE HUGE ALL
|
2022-09-17 18:39:19 +00:00
|
|
|
# SF_PACKAGES=ALL make
|
2022-09-28 09:49:46 +00:00
|
|
|
# Default is "MINI BASE NET" (see pkg-install.sh)
|
|
|
|
ARG SF_PACKAGES
|
2022-09-09 14:19:46 +00:00
|
|
|
|
2022-12-03 08:59:02 +00:00
|
|
|
COPY setup.sh fs-root/sf/bin/pkg-install.sh /
|
2022-08-09 22:09:50 +00:00
|
|
|
|
2022-12-06 14:15:57 +00:00
|
|
|
RUN sed 's/^deb \(.*\)/deb \1\ndeb-src \1/g' -i /etc/apt/sources.list \
|
|
|
|
&& apt-get update -y \
|
2022-09-09 14:19:46 +00:00
|
|
|
&& /pkg-install.sh MINI apt-get install -y --no-install-recommends \
|
|
|
|
iputils-ping \
|
|
|
|
iproute2 \
|
|
|
|
lsb-release \
|
2022-08-01 08:19:55 +00:00
|
|
|
locales \
|
2022-09-09 14:19:46 +00:00
|
|
|
net-tools \
|
|
|
|
procps \
|
|
|
|
psmisc \
|
2022-10-18 17:57:35 +00:00
|
|
|
rsync \
|
2022-09-09 14:19:46 +00:00
|
|
|
vim \
|
|
|
|
zsh \
|
|
|
|
zsh-autosuggestions \
|
|
|
|
zsh-syntax-highlighting \
|
|
|
|
&& /pkg-install.sh BASE apt-get install -y --no-install-recommends \
|
|
|
|
bc \
|
2022-09-28 09:49:46 +00:00
|
|
|
bsdmainutils \
|
2022-12-03 08:59:02 +00:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2022-09-28 09:49:46 +00:00
|
|
|
dos2unix \
|
2022-10-12 16:45:46 +00:00
|
|
|
file \
|
2022-12-03 08:59:02 +00:00
|
|
|
git \
|
|
|
|
jq \
|
2022-09-17 18:39:19 +00:00
|
|
|
less \
|
2022-09-09 14:19:46 +00:00
|
|
|
openssh-sftp-server \
|
2022-10-12 16:45:46 +00:00
|
|
|
python3-pip \
|
2022-09-09 14:19:46 +00:00
|
|
|
screen \
|
2022-09-28 09:49:46 +00:00
|
|
|
sharutils \
|
2022-11-30 17:28:47 +00:00
|
|
|
supervisor \
|
2022-09-09 14:19:46 +00:00
|
|
|
tmux \
|
2022-09-28 09:49:46 +00:00
|
|
|
unzip \
|
2022-09-09 14:19:46 +00:00
|
|
|
xxd \
|
|
|
|
&& /pkg-install.sh DEVEL apt-get install -y --no-install-recommends \
|
|
|
|
automake \
|
|
|
|
binutils \
|
|
|
|
bison \
|
|
|
|
build-essential \
|
|
|
|
byacc \
|
2022-11-16 10:42:27 +00:00
|
|
|
dtach \
|
2022-09-09 14:19:46 +00:00
|
|
|
flex \
|
2022-05-19 11:17:21 +00:00
|
|
|
g++ \
|
2022-09-28 09:49:46 +00:00
|
|
|
gawk \
|
2022-09-09 14:19:46 +00:00
|
|
|
gcc \
|
|
|
|
gdb \
|
2022-11-27 13:17:00 +00:00
|
|
|
grc \
|
2022-09-09 14:19:46 +00:00
|
|
|
hexedit \
|
2022-10-08 08:30:59 +00:00
|
|
|
html2text \
|
2022-12-06 14:15:57 +00:00
|
|
|
lib32z1 \
|
2022-09-17 18:39:19 +00:00
|
|
|
libc-devtools \
|
|
|
|
libevent-dev \
|
|
|
|
libssl-dev \
|
2022-09-09 14:19:46 +00:00
|
|
|
ltrace \
|
2022-12-06 14:15:57 +00:00
|
|
|
lz4 \
|
2022-05-19 11:17:21 +00:00
|
|
|
make \
|
2022-09-09 14:19:46 +00:00
|
|
|
patch \
|
2022-11-27 13:17:00 +00:00
|
|
|
pv \
|
|
|
|
source-highlight \
|
2022-08-09 06:28:47 +00:00
|
|
|
strace \
|
2022-11-27 13:17:00 +00:00
|
|
|
wdiff \
|
2022-10-16 15:14:16 +00:00
|
|
|
whiptail \
|
2022-10-08 08:30:59 +00:00
|
|
|
xterm \
|
2022-09-09 14:19:46 +00:00
|
|
|
&& /pkg-install.sh NET apt-get install -y --no-install-recommends \
|
|
|
|
dnsutils \
|
2022-09-28 09:49:46 +00:00
|
|
|
ftp \
|
2022-10-16 17:41:27 +00:00
|
|
|
iftop \
|
2022-09-09 14:19:46 +00:00
|
|
|
iputils-tracepath \
|
|
|
|
gsocket \
|
2022-05-19 11:17:21 +00:00
|
|
|
man-db \
|
|
|
|
manpages-dev \
|
2022-11-25 11:35:31 +00:00
|
|
|
mosh \
|
2022-11-27 13:17:00 +00:00
|
|
|
nano \
|
|
|
|
netcat-traditional \
|
|
|
|
ntpdate \
|
2022-12-03 08:59:02 +00:00
|
|
|
rpcbind \
|
2022-11-30 17:28:47 +00:00
|
|
|
sockstat \
|
2022-08-09 19:29:11 +00:00
|
|
|
sudo \
|
2022-10-16 17:41:27 +00:00
|
|
|
tcpdump \
|
2022-11-27 13:17:00 +00:00
|
|
|
tcpick \
|
2022-11-10 10:00:54 +00:00
|
|
|
telnet \
|
2022-09-09 14:19:46 +00:00
|
|
|
traceroute \
|
2022-10-16 17:41:27 +00:00
|
|
|
wireguard-tools \
|
2022-09-09 14:19:46 +00:00
|
|
|
wget \
|
2022-07-25 12:42:33 +00:00
|
|
|
whois \
|
2022-10-16 17:41:27 +00:00
|
|
|
&& DEBIAN_FRONTEND=noninteractive /pkg-install.sh HACK apt-get install -y --no-install-recommends \
|
2022-10-18 17:57:35 +00:00
|
|
|
assetfinder \
|
2022-10-16 17:41:27 +00:00
|
|
|
dnsmap \
|
2022-12-06 14:15:57 +00:00
|
|
|
dnsx \
|
2022-10-19 13:53:03 +00:00
|
|
|
ffuf \
|
2022-09-09 14:19:46 +00:00
|
|
|
hydra \
|
2022-10-18 17:57:35 +00:00
|
|
|
gobuster \
|
2022-12-03 08:59:02 +00:00
|
|
|
impacket-scripts \
|
2022-07-27 14:26:03 +00:00
|
|
|
irssi \
|
2022-09-28 09:49:46 +00:00
|
|
|
nbtscan \
|
|
|
|
netdiscover \
|
2022-12-03 08:59:02 +00:00
|
|
|
ncrack \
|
2022-09-09 14:19:46 +00:00
|
|
|
nmap \
|
2022-12-03 08:59:02 +00:00
|
|
|
onesixtyone \
|
|
|
|
oracle-instantclient-sqlplus \
|
|
|
|
oscanner \
|
2022-09-09 14:19:46 +00:00
|
|
|
pagekite \
|
2022-10-31 18:10:03 +00:00
|
|
|
shadowsocks-libev \
|
|
|
|
shadowsocks-v2ray-plugin \
|
2022-09-28 09:49:46 +00:00
|
|
|
snmpcheck \
|
2022-09-09 14:19:46 +00:00
|
|
|
socat \
|
|
|
|
thc-ipv6 \
|
2022-12-03 08:59:02 +00:00
|
|
|
tnscmd10g \
|
2022-10-16 17:41:27 +00:00
|
|
|
tshark \
|
2022-12-06 14:15:57 +00:00
|
|
|
upx \
|
2022-09-28 09:49:46 +00:00
|
|
|
webshells \
|
2022-09-13 09:22:48 +00:00
|
|
|
weevely \
|
2022-09-17 18:39:19 +00:00
|
|
|
&& /pkg-install.sh LARGE apt-get install -y --no-install-recommends \
|
2022-10-11 12:51:11 +00:00
|
|
|
altdns \
|
|
|
|
apache2-utils \
|
2022-11-27 13:17:00 +00:00
|
|
|
apt-file \
|
2022-12-06 14:15:57 +00:00
|
|
|
apt-src \
|
|
|
|
apt-utils \
|
|
|
|
backdoor-factory \
|
2022-10-11 12:51:11 +00:00
|
|
|
bat \
|
|
|
|
cmseek \
|
|
|
|
commix \
|
|
|
|
dirb \
|
|
|
|
dirsearch \
|
2022-12-03 08:59:02 +00:00
|
|
|
dnsenum \
|
2022-10-11 12:51:11 +00:00
|
|
|
dnsrecon \
|
2022-10-16 15:14:16 +00:00
|
|
|
dotnet-runtime-6.0 \
|
2022-05-19 11:17:21 +00:00
|
|
|
dstat \
|
2022-10-11 12:51:11 +00:00
|
|
|
duf \
|
2022-11-30 17:28:47 +00:00
|
|
|
elinks \
|
2022-10-16 17:41:27 +00:00
|
|
|
emacs \
|
2022-10-11 12:51:11 +00:00
|
|
|
emailharvester \
|
|
|
|
enum4linux \
|
2022-12-03 08:59:02 +00:00
|
|
|
evil-winrm \
|
|
|
|
eyewitness \
|
2022-11-25 11:35:31 +00:00
|
|
|
exa \
|
2022-10-11 12:51:11 +00:00
|
|
|
exiftool \
|
2022-11-27 13:17:00 +00:00
|
|
|
fd-find \
|
2022-11-30 17:28:47 +00:00
|
|
|
fzf \
|
2022-05-19 11:17:21 +00:00
|
|
|
gnupg \
|
2022-10-11 12:51:11 +00:00
|
|
|
hashcat \
|
2022-11-27 13:17:00 +00:00
|
|
|
highlight \
|
2022-10-11 12:51:11 +00:00
|
|
|
htop \
|
|
|
|
ldap-utils \
|
2022-10-16 15:14:16 +00:00
|
|
|
joe \
|
2022-10-11 12:51:11 +00:00
|
|
|
john \
|
2022-08-13 15:10:26 +00:00
|
|
|
lsof \
|
2022-08-01 15:05:29 +00:00
|
|
|
lynx \
|
2022-10-11 12:51:11 +00:00
|
|
|
mc \
|
2022-10-18 17:57:35 +00:00
|
|
|
mg \
|
2022-10-11 12:51:11 +00:00
|
|
|
mtr \
|
2022-12-06 14:15:57 +00:00
|
|
|
mono-mcs \
|
|
|
|
mono-devel \
|
2022-10-11 12:51:11 +00:00
|
|
|
most \
|
2022-12-03 08:59:02 +00:00
|
|
|
mycli \
|
|
|
|
mypager \
|
|
|
|
nfs-common \
|
2022-10-16 17:41:27 +00:00
|
|
|
neofetch \
|
2022-11-25 11:35:31 +00:00
|
|
|
neovim \
|
2022-10-11 12:51:11 +00:00
|
|
|
ngrep \
|
2022-12-03 08:59:02 +00:00
|
|
|
nikto \
|
2022-10-11 12:51:11 +00:00
|
|
|
openssh-client \
|
2022-10-31 18:10:03 +00:00
|
|
|
p7zip-full \
|
2022-10-11 12:51:11 +00:00
|
|
|
peass \
|
|
|
|
pip \
|
|
|
|
proxychains \
|
2022-12-06 14:15:57 +00:00
|
|
|
python2-minimal \
|
2022-10-11 12:51:11 +00:00
|
|
|
python-is-python3 \
|
2022-11-25 11:35:31 +00:00
|
|
|
python3-pwntools \
|
2022-11-27 13:17:00 +00:00
|
|
|
python3-pygments \
|
2022-10-31 18:10:03 +00:00
|
|
|
python3-venv \
|
|
|
|
python3-virtualenv \
|
2022-11-25 11:35:31 +00:00
|
|
|
radare2 \
|
2022-10-11 12:51:11 +00:00
|
|
|
recon-ng \
|
2022-12-03 08:59:02 +00:00
|
|
|
redis-tools \
|
2022-10-11 12:51:11 +00:00
|
|
|
rclone \
|
|
|
|
rlwrap \
|
2022-09-09 14:19:46 +00:00
|
|
|
smbclient \
|
|
|
|
smbmap \
|
2022-09-28 09:49:46 +00:00
|
|
|
snmp \
|
2022-10-16 15:14:16 +00:00
|
|
|
speedtest-cli \
|
2022-12-03 08:59:02 +00:00
|
|
|
sqsh \
|
2022-09-09 14:19:46 +00:00
|
|
|
sslscan \
|
|
|
|
sshpass \
|
|
|
|
ssh-audit \
|
2022-12-03 08:59:02 +00:00
|
|
|
sublist3r \
|
2022-12-06 14:15:57 +00:00
|
|
|
syncthing \
|
2022-09-09 14:19:46 +00:00
|
|
|
theharvester \
|
2022-11-25 11:35:31 +00:00
|
|
|
tmate \
|
2022-10-11 12:51:11 +00:00
|
|
|
tree \
|
2022-11-25 11:35:31 +00:00
|
|
|
torsocks \
|
2022-10-11 12:51:11 +00:00
|
|
|
w3m \
|
2022-10-16 17:41:27 +00:00
|
|
|
weechat weechat-plugins weechat-matrix \
|
2022-10-11 12:51:11 +00:00
|
|
|
whatweb \
|
|
|
|
wipe \
|
|
|
|
wpscan \
|
2022-10-18 17:57:35 +00:00
|
|
|
wrk \
|
2022-11-10 10:00:54 +00:00
|
|
|
zoxide \
|
2022-09-17 18:39:19 +00:00
|
|
|
&& /pkg-install.sh HUGE apt-get install -y --no-install-recommends \
|
2022-12-03 08:59:02 +00:00
|
|
|
bloodhound \
|
2022-09-17 18:39:19 +00:00
|
|
|
default-jdk \
|
|
|
|
exploitdb \
|
|
|
|
gem \
|
2022-08-09 19:29:11 +00:00
|
|
|
golang-go \
|
2022-09-09 14:19:46 +00:00
|
|
|
npm \
|
|
|
|
nodejs \
|
2022-09-17 18:39:19 +00:00
|
|
|
php \
|
2022-08-09 19:29:11 +00:00
|
|
|
pkg-config \
|
2022-11-25 11:35:31 +00:00
|
|
|
ripgrep \
|
2022-09-17 18:39:19 +00:00
|
|
|
rust-all \
|
|
|
|
ruby \
|
2022-12-06 14:15:57 +00:00
|
|
|
veil \
|
2022-08-09 22:09:50 +00:00
|
|
|
x11-apps \
|
2022-12-03 08:59:02 +00:00
|
|
|
&& /pkg-install.sh HUGE ghbin SagerNet/sing-box 'linux-amd64.' sing-box \
|
|
|
|
&& /pkg-install.sh HUGE ghbin tomnomnom/waybackurls 'linux-amd64-' waybackurls \
|
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/uncover 'linux_amd64.zip$' uncover \
|
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/httpx 'linux_amd64.zip$' httpx \
|
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/nuclei 'linux_amd64.zip$' nuclei \
|
2022-12-06 14:15:57 +00:00
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/subfinder 'linux_amd64.zip$' subfinder \
|
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/naabu 'linux_amd64.zip$' naabu \
|
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/proxify 'linux_amd64.zip$' proxify \
|
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/katana 'linux_amd64.zip$' katana \
|
|
|
|
&& /pkg-install.sh HACK ghbin projectdiscovery/tlsx 'linux_amd64.zip$' tlsx \
|
|
|
|
&& /pkg-install.sh HACK ghbin s0md3v/smap 'linux_amd64.tar.xz$' smap \
|
2022-12-03 08:59:02 +00:00
|
|
|
&& /pkg-install.sh LARGE ghbin Peltoche/lsd 'lsd_.*_amd64.deb$' \
|
|
|
|
&& /pkg-install.sh LARGE ghbin cheat/cheat 'linux-amd64.gz$' cheat \
|
|
|
|
&& /pkg-install.sh LARGE ghbin sensepost/gowitness 'linux-amd64$' gowitness \
|
2022-12-06 14:15:57 +00:00
|
|
|
&& /pkg-install.sh HACK ghbin ropnop/kerbrute 'linux_amd64$' kerbrute \
|
|
|
|
&& /pkg-install.sh LARGE ghbin denisidoro/navi 'x86_64-unknown-linux' navi \
|
|
|
|
&& /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 HUGE bash -c '{ cd /tmp \
|
|
|
|
&& 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 \
|
|
|
|
&& { dpkg --add-architecture i386 \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends libc6-dbg:i386 \
|
|
|
|
&& dpkg --force-architecture --remove-architecture i386; } \
|
|
|
|
&& pip install -Ur requirements.txt \
|
|
|
|
&& cd .. \
|
|
|
|
&& mv pwndbg /usr/share \
|
|
|
|
&& 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 \
|
|
|
|
&& echo DONE; }' \
|
2022-10-12 16:45:46 +00:00
|
|
|
&& /pkg-install.sh LARGE pip install --pre 'scapy[basic]' \
|
|
|
|
&& /pkg-install.sh WEB pip install \
|
|
|
|
'pelican[Markdown]' \
|
2022-09-19 13:59:14 +00:00
|
|
|
&& /pkg-install.sh LARGE pip install \
|
|
|
|
git-dumper \
|
2022-09-28 09:49:46 +00:00
|
|
|
ipython \
|
2022-09-19 13:59:14 +00:00
|
|
|
shodan \
|
2022-11-30 17:28:47 +00:00
|
|
|
maigret \
|
2022-09-28 09:49:46 +00:00
|
|
|
&& /pkg-install.sh HACK pip install \
|
2022-12-03 08:59:02 +00:00
|
|
|
arsenal-cli \
|
2022-09-28 09:49:46 +00:00
|
|
|
hashid \
|
|
|
|
sqlmap \
|
2022-09-19 13:59:14 +00:00
|
|
|
&& /pkg-install.sh DEVEL pip install \
|
|
|
|
cryptocode \
|
|
|
|
colorama \
|
2022-12-06 14:15:57 +00:00
|
|
|
names \
|
2022-10-31 18:10:03 +00:00
|
|
|
PyCryptodome \
|
2022-12-03 08:59:02 +00:00
|
|
|
&& /pkg-install.sh LARGE bash -c "{ curl -fsSL https://gitlab.com/api/v4/projects/32089582/packages/generic/geonet-rs/0.4.0/geonet_0.4.0_amd64.deb -o /tmp/geonet.deb \
|
|
|
|
&& dpkg -i /tmp/geonet.deb; }" \
|
2022-09-17 18:39:19 +00:00
|
|
|
&& /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 "{ [[ $(uname -m) = "x86_64" ]] && apt-get install -y --no-install-recommends linux-headers-amd64; }" \
|
2022-09-09 14:19:46 +00:00
|
|
|
&& { rm -f /tmp/*.deb; true; } \
|
2022-12-03 08:59:02 +00:00
|
|
|
&& /pkg-install.sh HACK bash -c "curl -fsSL https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | tar xfvz - -C /usr/local/bin" \
|
|
|
|
&& echo "DONE."
|
2022-09-18 11:42:52 +00:00
|
|
|
|
2022-09-17 18:39:19 +00:00
|
|
|
# Keep the apt/lists in case user does an apt update -y
|
2022-07-28 17:50:07 +00:00
|
|
|
#RUN rm -rf /var/lib/apt/lists/*
|
2022-03-05 13:17:15 +00:00
|
|
|
|
2022-12-03 08:59:02 +00:00
|
|
|
# Do fs-root last (on vmbox it messes with permissions on directories and setup.sh fixes it)
|
2022-09-18 11:42:52 +00:00
|
|
|
COPY /fs-root/ /
|
|
|
|
RUN /setup.sh \
|
2022-10-18 09:44:13 +00:00
|
|
|
&& rm -f /setup.sh /pkg-install.sh
|
2022-09-18 11:42:52 +00:00
|
|
|
|
2022-05-19 11:17:21 +00:00
|
|
|
CMD ["zsh", "-il"]
|