Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dist/challenge-templates/xss-bot/challenge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN apt-get update && apt-get install -y gnupg2 wget
# plus libxshmfence1 which seems to be missing
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& wget -q -O - https://deb.nodesource.com/setup_16.x | bash - \
&& wget -q -O - https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
ca-certificates \
Expand Down Expand Up @@ -69,6 +69,7 @@ COPY bot.js /home/user/
COPY cookie /home/user/
COPY .puppeteerrc.cjs /home/user/
RUN cd /home/user && npm install puppeteer
RUN cp -r /root/.cache /home/user/

ENV DOMAIN="www.example.com"
# Hosting multiple web challenges same-site to each other can lead to
Expand Down