Skip to content

Commit

Permalink
update arch image
Browse files Browse the repository at this point in the history
  • Loading branch information
mbund committed Mar 18, 2024
1 parent 270fdcc commit c2cbbc9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Play tag in the browser!
- The players then switch computers and try to find the backdoors installed by the other player and remove them in again 7 minutes
- Points are scored for each backdoor that was installed which still remained
- What counts as a backdoor is at the discretion of the adjudicator
- In general backdoors can be privaledge escalation, remote access, other persistence, etc.
- In general backdoors can be privilege escalation, remote access, other persistence, etc.
- The players should not render the their own computer unusable before switching (don't lock root user, completely destroy config files, etc.)

## Usage
Expand Down
13 changes: 12 additions & 1 deletion images/Dockerfile.archlinux
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,20 @@ RUN systemctl set-default multi-user.target
RUN useradd --create-home --shell /bin/bash admin && echo "admin:admin" | chpasswd
RUN usermod -aG wheel admin

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

RUN sed -i 's/LoadModule mpm_event_module/#LoadModule mpm_event_module/g' /etc/httpd/conf/httpd.conf \
&& sed -i 's/#LoadModule mpm_prefork_module/LoadModule mpm_prefork_module/g' /etc/httpd/conf/httpd.conf \
&& echo "LoadModule php_module modules/libphp.so" >> /etc/httpd/conf/httpd.conf \
&& echo "AddHandler php-script .php" >> /etc/httpd/conf/httpd.conf \
&& echo "Include conf/extra/php_module.conf" >> /etc/httpd/conf/httpd.conf \
&& echo "DirectoryIndex index.php index.html" >> /etc/httpd/conf/httpd.conf

RUN systemctl enable httpd
RUN systemctl enable sshd
RUN systemctl enable cronie

RUN wget https://github.com/tsl0922/ttyd/releases/download/1.7.4/ttyd.x86_64 -O /usr/bin/ttyd.x86_64
RUN chmod +x /usr/bin/ttyd.x86_64

Expand Down
10 changes: 10 additions & 0 deletions images/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
archlinux:
build:
dockerfile: Dockerfile.archlinux
privileged: true
ports:
- "1001:7681"
- "1002:7682"
volumes:
- ./autotag1.env:/etc/autotag.env

0 comments on commit c2cbbc9

Please sign in to comment.