challenge-diff (latest)

Published 2025-03-31 22:15:22 +02:00 by Tymek in CTFILT/challenges

Installation

docker pull git.agin.rocks/ctfilt/challenge-diff:latest
sha256:89516b1ce75085984a9ed98aad6a8726a874af7d1d9115c264c8540141897d89

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"]
COPY /usr/src/app/secret-old /home/ctf/secret-old # buildkit
COPY /usr/src/app/secret-new /home/ctf/secret-new # buildkit
RUN /bin/sh -c chown -R ctf:ctf /home/ctf/secret-old # buildkit
RUN /bin/sh -c chown -R ctf:ctf /home/ctf/secret-new # buildkit
EXPOSE map[22/tcp:{}]
RUN /bin/sh -c echo "tail -f /dev/null" >> /root/entrypoint.sh # buildkit

Labels

Key Value
com.docker.compose.project diff
com.docker.compose.service challenge-diff
com.docker.compose.version 2.34.0
Details
Container
2025-03-31 22:15:22 +02:00
4
OCI / Docker
linux/amd64
68 MiB
Versions (1) View all
latest 2025-03-31