diff --git a/dist/challenge-templates/xss-bot/challenge/Dockerfile b/dist/challenge-templates/xss-bot/challenge/Dockerfile index 46acfa1e..5c00d137 100644 --- a/dist/challenge-templates/xss-bot/challenge/Dockerfile +++ b/dist/challenge-templates/xss-bot/challenge/Dockerfile @@ -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 \ @@ -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