added official hacktheboo2024 writeups
This commit is contained in:
parent
1f7a9b0566
commit
e3c46450f7
327 changed files with 14303 additions and 0 deletions
26
htb/hacktheboo2024/web/web_void_whispers/Dockerfile
Normal file
26
htb/hacktheboo2024/web/web_void_whispers/Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM php:alpine
|
||||
|
||||
# Setup user
|
||||
RUN adduser -D -u 1000 -g 1000 -s /bin/sh www
|
||||
|
||||
# Install system packages
|
||||
RUN apk add --no-cache --update curl supervisor nginx php-fpm
|
||||
|
||||
# Configure php-fpm and nginx
|
||||
COPY config/fpm.conf /etc/php83/php-fpm.d/www.conf
|
||||
COPY config/supervisord.conf /etc/supervisord.conf
|
||||
COPY config/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Copy challenge files
|
||||
COPY challenge /www
|
||||
COPY flag.txt /
|
||||
|
||||
# Setup permissions
|
||||
RUN chown -R www:www /var/lib/nginx
|
||||
RUN chown -R www:www /www
|
||||
|
||||
# Expose the port nginx is listening on
|
||||
EXPOSE 1337
|
||||
|
||||
# Start supervisord
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
Loading…
Add table
Add a link
Reference in a new issue