segfault/guest/Dockerfile

213 lines
4.9 KiB
Docker
Raw Normal View History

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
COPY setup.sh pkg-install.sh /
2022-08-09 22:09:50 +00:00
RUN apt-get update -y \
2022-09-09 14:19:46 +00:00
&& /pkg-install.sh MINI apt-get install -y --no-install-recommends \
2022-03-05 13:17:15 +00:00
ca-certificates \
2022-08-09 19:29:11 +00:00
curl \
2022-09-09 14:19:46 +00:00
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 \
dos2unix \
2022-10-12 16:45:46 +00:00
file \
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-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 \
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-03-05 13:17:15 +00:00
git \
2022-09-09 14:19:46 +00:00
hexedit \
2022-10-08 08:30:59 +00:00
html2text \
2022-09-17 18:39:19 +00:00
libc-devtools \
libevent-dev \
libssl-dev \
2022-09-09 14:19:46 +00:00
ltrace \
2022-05-19 11:17:21 +00:00
make \
2022-09-09 14:19:46 +00:00
patch \
2022-08-09 06:28:47 +00:00
strace \
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 \
nano \
netcat-traditional \
2022-05-19 11:17:21 +00:00
man-db \
manpages-dev \
2022-08-09 19:29:11 +00:00
sudo \
2022-10-16 17:41:27 +00:00
tcpdump \
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-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-07-27 14:26:03 +00:00
irssi \
2022-09-28 09:49:46 +00:00
nbtscan \
netdiscover \
2022-09-09 14:19:46 +00:00
nmap \
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-10-16 17:41:27 +00:00
tshark \
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 \
bat \
cmseek \
commix \
dirb \
dirsearch \
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-10-16 17:41:27 +00:00
emacs \
2022-10-11 12:51:11 +00:00
emailharvester \
enum4linux \
exiftool \
2022-05-19 11:17:21 +00:00
gnupg \
2022-10-11 12:51:11 +00:00
hashcat \
htop \
ldap-utils \
2022-10-16 15:14:16 +00:00
joe \
2022-10-11 12:51:11 +00:00
john \
2022-05-19 11:17:21 +00:00
jq \
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 \
most \
2022-10-16 17:41:27 +00:00
neofetch \
2022-09-09 14:19:46 +00:00
nikto \
2022-10-11 12:51:11 +00:00
ngrep \
openssh-client \
2022-10-31 18:10:03 +00:00
p7zip-full \
2022-10-11 12:51:11 +00:00
peass \
pip \
proxychains \
python-is-python3 \
2022-10-31 18:10:03 +00:00
python3-venv \
python3-virtualenv \
2022-10-11 12:51:11 +00:00
recon-ng \
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-09-09 14:19:46 +00:00
sslscan \
sshpass \
ssh-audit \
theharvester \
2022-10-11 12:51:11 +00:00
tree \
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 \
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-09-17 18:39:19 +00:00
rust-all \
ruby \
2022-08-09 22:09:50 +00:00
x11-apps \
2022-09-28 09:49:46 +00:00
&& /pkg-install.sh HUGE go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest \
2022-10-16 17:41:27 +00:00
&& /pkg-install.sh HUGE go install -v github.com/sagernet/sing-box/cmd/sing-box@latest \
2022-10-18 17:57:35 +00:00
&& /pkg-install.sh HUGE go install -v github.com/tomnomnom/waybackurls@latest \
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-09-28 09:49:46 +00:00
&& /pkg-install.sh HACK pip install \
hashid \
sqlmap \
&& /pkg-install.sh HACK bash -c "{ curl -fsSL https://github.com/projectdiscovery/uncover/releases/download/v0.0.8/uncover_0.0.8_linux_amd64.zip -o /tmp/pkg.zip \
&& unzip /tmp/pkg.zip uncover -d /usr/bin && rm -f /tmp/pkg.zip \
&& curl -fsSL https://github.com/projectdiscovery/httpx/releases/download/v1.2.4/httpx_1.2.4_linux_amd64.zip -o /tmp/pkg.zip \
&& unzip /tmp/pkg.zip httpx -d /usr/bin && rm -f /tmp/pkg.zip \
&& curl -fsSL https://github.com/projectdiscovery/nuclei/releases/download/v2.7.7/nuclei_2.7.7_linux_amd64.zip -o /tmp/pkg.zip \
2022-09-28 15:05:55 +00:00
&& unzip /tmp/pkg.zip nuclei -d /usr/bin && rm -f /tmp/pkg.zip; }" \
2022-09-19 13:59:14 +00:00
&& /pkg-install.sh DEVEL pip install \
cryptocode \
colorama \
2022-10-31 18:10:03 +00:00
PyCryptodome \
2022-09-17 18:39:19 +00:00
&& /pkg-install.sh LARGE curl -fsSL https://github.com/Peltoche/lsd/releases/download/0.21.0/lsd_0.21.0_amd64.deb -o /tmp/lsd.deb \
&& /pkg-install.sh LARGE dpkg -i /tmp/lsd.deb \
&& /pkg-install.sh LARGE 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 \
&& /pkg-install.sh LARGE dpkg -i /tmp/geonet.deb \
&& /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-09-18 11:42:52 +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"
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-09-18 11:42:52 +00:00
# Do fs-root last (on vmbox it messes with chmod and setup.sh fixes it)
COPY /fs-root/ /
RUN /setup.sh \
&& 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"]