Skip to content

Commit c2cbbc9

Browse files
committed
update arch image
1 parent 270fdcc commit c2cbbc9

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Play tag in the browser!
1111
- The players then switch computers and try to find the backdoors installed by the other player and remove them in again 7 minutes
1212
- Points are scored for each backdoor that was installed which still remained
1313
- What counts as a backdoor is at the discretion of the adjudicator
14-
- In general backdoors can be privaledge escalation, remote access, other persistence, etc.
14+
- In general backdoors can be privilege escalation, remote access, other persistence, etc.
1515
- The players should not render the their own computer unusable before switching (don't lock root user, completely destroy config files, etc.)
1616

1717
## Usage

images/Dockerfile.archlinux

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,20 @@ RUN systemctl set-default multi-user.target
77
RUN useradd --create-home --shell /bin/bash admin && echo "admin:admin" | chpasswd
88
RUN usermod -aG wheel admin
99

10-
RUN pacman -Syu --noconfirm wget tmux sudo neofetch vim
10+
RUN pacman -Syu --noconfirm wget apache php php-apache tmux sudo neofetch vim vi nano openssh cronie which python gcc make zip unzip npm
1111
RUN sed -i 's/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/g' /etc/sudoers
1212

13+
RUN sed -i 's/LoadModule mpm_event_module/#LoadModule mpm_event_module/g' /etc/httpd/conf/httpd.conf \
14+
&& sed -i 's/#LoadModule mpm_prefork_module/LoadModule mpm_prefork_module/g' /etc/httpd/conf/httpd.conf \
15+
&& echo "LoadModule php_module modules/libphp.so" >> /etc/httpd/conf/httpd.conf \
16+
&& echo "AddHandler php-script .php" >> /etc/httpd/conf/httpd.conf \
17+
&& echo "Include conf/extra/php_module.conf" >> /etc/httpd/conf/httpd.conf \
18+
&& echo "DirectoryIndex index.php index.html" >> /etc/httpd/conf/httpd.conf
19+
20+
RUN systemctl enable httpd
21+
RUN systemctl enable sshd
22+
RUN systemctl enable cronie
23+
1324
RUN wget https://github.com/tsl0922/ttyd/releases/download/1.7.4/ttyd.x86_64 -O /usr/bin/ttyd.x86_64
1425
RUN chmod +x /usr/bin/ttyd.x86_64
1526

images/docker-compose.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
archlinux:
3+
build:
4+
dockerfile: Dockerfile.archlinux
5+
privileged: true
6+
ports:
7+
- "1001:7681"
8+
- "1002:7682"
9+
volumes:
10+
- ./autotag1.env:/etc/autotag.env

0 commit comments

Comments
 (0)