Add examples

This commit is contained in:
2026-09-16 21:58:31 +03:00
commit 8ee59bdd9b
21 changed files with 254 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
version: "3"
services:
service:
build: service
restart: always
expose:
- 22
networks:
- net
environment:
- FLAG=${FLAG}
labels:
- owl.proxy=true
- owl.proxy.port=22
- owl.label.conntype=ssh
- owl.ssh.username=ctf
- owl.ssh.password=secret
networks:
net:
external:
name: ctfd_frp_containers
+18
View File
@@ -0,0 +1,18 @@
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
openssh-server \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /tmp/build
WORKDIR /tmp/build
RUN useradd -m -d /home/ctf -s /bin/bash ctf && echo "ctf:secret" | chpasswd
COPY . .
RUN chmod +x docker-entrypoint.sh
RUN mkdir /var/run/sshd
EXPOSE 22
ENTRYPOINT ["./docker-entrypoint.sh"]
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
echo "${FLAG}" > /flag.txt
rm -rf /tmp/build
exec /usr/sbin/sshd -D