Skip to content

Commit

Permalink
[v8ctf] update chrome version
Browse files Browse the repository at this point in the history
  • Loading branch information
sroettger committed Oct 30, 2023
1 parent 176d47f commit c00f2d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
3 changes: 2 additions & 1 deletion v8ctf/chrome/challenge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
RUN apt-get update && apt-get install -y unzip

RUN mkdir /home/user
RUN wget 'https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1181205%2Fchrome-linux.zip?generation=1691535836009137&alt=media' -O /home/user/chrome-linux.zip
# This version is to be released on 2023-11-06
RUN wget 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.70/linux64/chrome-linux64.zip' -O /home/user/chrome-linux.zip
RUN cd /home/user && unzip chrome-linux.zip && rm chrome-linux.zip

COPY chal /home/user/
Expand Down
2 changes: 1 addition & 1 deletion v8ctf/chrome/challenge/chal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/bash

CHROME=/home/user/chrome-linux/chrome
CHROME=/home/user/chrome-linux64/chrome

echo "Version: $($CHROME --version | head -n1)"
echo "Please send me a URL to open."
Expand Down
19 changes: 2 additions & 17 deletions v8ctf/chrome/challenge/nsjail.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,8 @@ mount: [
is_bind: true
},
{
src: "/dev/null"
dst: "/dev/null"
is_bind: true
},
{
src: "/dev/zero"
dst: "/dev/zero"
is_bind: true
},
{
src: "/dev/urandom"
dst: "/dev/urandom"
src: "/dev"
dst: "/dev"
is_bind: true
},
{
Expand All @@ -61,11 +51,6 @@ mount: [
fstype: "tmpfs"
rw: true
},
{
dst: "/dev/shm"
fstype: "tmpfs"
rw: true
},
{
dst: "/proc"
fstype: "proc"
Expand Down

0 comments on commit c00f2d6

Please sign in to comment.