diff --git a/classes/class06/docker-compose.yml b/classes/class06/docker-compose.yml new file mode 100644 index 0000000..296f928 --- /dev/null +++ b/classes/class06/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3.3' + +services: + class-06-victim: + build: ssh/ + stop_grace_period: 0s + hostname: class6-victim + container_name: scl-class-06-victim + networks: + playground-net: + ipv4_address: 172.20.0.98 + + class-06-proxy-hop: + build: ssh/ + stop_grace_period: 0s + hostname: class6-hop + container_name: scl-class-06-proxy-hop + networks: + playground-net: + ipv4_address: 172.20.0.99 + +networks: + playground-net: + external: true \ No newline at end of file diff --git a/classes/class06/meta.json b/classes/class06/meta.json new file mode 100644 index 0000000..f20177c --- /dev/null +++ b/classes/class06/meta.json @@ -0,0 +1,7 @@ +{ + "name": "Class 06 - Privilege Escalation and Persistence", + "id": "class-06", + "description": "The sixth class focuses on privilege escalation, persistence and side channel attacks. Please open the Google document provided to all registered students and follow the document.", + "google_doc_url": "", + "yt_recording_url": "" +} diff --git a/classes/class06/ssh/Dockerfile b/classes/class06/ssh/Dockerfile new file mode 100644 index 0000000..7e4890c --- /dev/null +++ b/classes/class06/ssh/Dockerfile @@ -0,0 +1,13 @@ +FROM debian:bookworm + +RUN apt update && \ + apt install -y openssh-server + +RUN mkdir -p /var/run/sshd +RUN mkdir -p /root/.ssh + +COPY sshd_config /etc/ssh/sshd_config + +RUN echo "root:admin" | chpasswd + +CMD ["/usr/sbin/sshd", "-D"] diff --git a/classes/class06/ssh/sshd_config b/classes/class06/ssh/sshd_config new file mode 100644 index 0000000..26578be --- /dev/null +++ b/classes/class06/ssh/sshd_config @@ -0,0 +1,7 @@ +PermitRootLogin yes +ChallengeResponseAuthentication no +UsePAM yes +X11Forwarding yes +PrintMotd no +AcceptEnv LANG LC_* +Banner /etc/banner \ No newline at end of file diff --git a/docs/development.md b/docs/development.md index f6d12cd..a28de26 100644 --- a/docs/development.md +++ b/docs/development.md @@ -50,6 +50,8 @@ | playground-net | `172.20.0.88` | [Class02](./../classes/class02) | | playground-net | `172.20.0.90` | [Class03](./../classes/class03) | | playground-net | `172.20.0.95` | [Class03](./../classes/class03) | + | playground-net | `172.20.0.98` | [Class06](./../classes/class06) | + | playground-net | `172.20.0.99` | [Class06](./../classes/class06) |