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_phantom_script/Dockerfile
Normal file
26
htb/hacktheboo2024/web/web_phantom_script/Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM node:current-alpine
|
||||
|
||||
# Install necessary dependencies
|
||||
RUN apk update \
|
||||
&& apk add --no-cache chromium nss freetype harfbuzz ttf-freefont \
|
||||
&& apk add --no-cache curl wget xvfb unzip supervisor \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
# Set environment variable for Puppeteer to use the system-installed Chromium
|
||||
ENV PUPPETEER_SKIP_DOWNLOAD=true \
|
||||
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
||||
|
||||
# Install Node.js dependencies
|
||||
WORKDIR /app
|
||||
COPY challenge .
|
||||
RUN npm install
|
||||
|
||||
# Copying required files
|
||||
COPY flag.txt /
|
||||
COPY config/supervisord.conf /etc/supervisord.conf
|
||||
|
||||
# Expose port
|
||||
EXPOSE 1337
|
||||
|
||||
# Start supervisor
|
||||
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
Loading…
Add table
Add a link
Reference in a new issue