Skip to content

Commit

Permalink
create class06 with extra victim and proxy-hop machines
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyStoic committed Oct 30, 2024
1 parent 16e8559 commit ba088bd
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
24 changes: 24 additions & 0 deletions classes/class06/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions classes/class06/meta.json
Original file line number Diff line number Diff line change
@@ -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": ""
}
13 changes: 13 additions & 0 deletions classes/class06/ssh/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
7 changes: 7 additions & 0 deletions classes/class06/ssh/sshd_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PermitRootLogin yes
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Banner /etc/banner
2 changes: 2 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |



Expand Down

0 comments on commit ba088bd

Please sign in to comment.