challenge-env (latest)

Published 2025-04-03 20:06:30 +02:00 by Tymek

Installation

docker pull git.agin.rocks/ctfilt/challenge-env:latest
sha256:4cf32a37c83e1ab48103759f1d362610d44ef17b823528e994ae85aa7bf36f35

Image layers

ADD file:82f06126089fd0ca482c29baeb90ef37ac3a9f5f6a0f2f5c968a605846627d47 in /
CMD ["bash"]
RUN /bin/sh -c apt-get update && apt-get install -y openssh-server && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c mkdir -p /var/run/sshd /etc/ssh # buildkit
COPY ssh_host_keys /etc/ssh/ # buildkit
RUN /bin/sh -c chmod 600 /etc/ssh/ssh_host_* && chmod 644 /etc/ssh/ssh_host_*.pub # buildkit
RUN /bin/sh -c echo 'PermitRootLogin no' >> /etc/ssh/sshd_config && echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config && echo 'HostKey /etc/ssh/ssh_host_rsa_key' >> /etc/ssh/sshd_config && echo 'HostKey /etc/ssh/ssh_host_ecdsa_key' >> /etc/ssh/sshd_config && echo 'HostKey /etc/ssh/ssh_host_ed25519_key' >> /etc/ssh/sshd_config # buildkit
RUN /bin/sh -c useradd -m -s /bin/bash ctf && echo 'ctf:ctfilt' | chpasswd # buildkit
COPY ctfilt_base_assets/welcome.txt /etc/motd # buildkit
RUN /bin/sh -c echo "#!/usr/bin/env bash" > /root/entrypoint.sh && echo "/usr/sbin/sshd" >> /root/entrypoint.sh && chmod +x /root/entrypoint.sh # buildkit
EXPOSE map[22/tcp:{}]
ENTRYPOINT ["/root/entrypoint.sh"]
RUN /bin/sh -c apt-get update && apt-get install -y apache2 && rm -rf /var/lib/apt/lists/* # buildkit
EXPOSE map[22/tcp:{}]
RUN /bin/sh -c echo "su - ctf -c \"FLAG='RkxBR3tlbnZfRlBaejdFZ3pNWWhyN0g1WH0=' tail -f /dev/null\"" >> /root/entrypoint.sh # buildkit

Labels

Key Value
com.docker.compose.project env
com.docker.compose.service challenge-env
com.docker.compose.version 2.34.0
Details
Container
2025-04-03 20:06:30 +02:00
7
OCI / Docker
linux/amd64
97 MiB
Versions (1) View all
latest 2025-04-03