initial commit with basic level 0 on single machine
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
ARG levelNum=0
|
||||||
|
|
||||||
|
RUN <<EOF
|
||||||
|
useradd -m -s /bin/bash player${levelNum}
|
||||||
|
echo 'root:superSecretRootPassword' | chpasswd
|
||||||
|
echo "player${levelNum}:superSecretPlayerPassword${levelNum}" | chpasswd
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
COPY ./levels/level${levelNum} /home/player$levelNum
|
||||||
|
|
||||||
|
USER player${levelNum}
|
||||||
|
|
||||||
|
WORKDIR /home/player$levelNum
|
||||||
|
|
||||||
|
CMD /bin/bash
|
||||||
6
compose.yaml
Normal file
6
compose.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
ubuntu:
|
||||||
|
build: .
|
||||||
|
hostname: uactf
|
||||||
|
command: ["tail", "-f", "/dev/null"]
|
||||||
|
restart: unless-stopped
|
||||||
1
levels/level0/readme.txt
Normal file
1
levels/level0/readme.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{f14g}
|
||||||
Reference in New Issue
Block a user