Skip to content

Commit 79521b9

Browse files
committed
fixup: put the flag everywhere lol
1 parent 978e6ec commit 79521b9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

vendor/nsjail/context/nsjail-user.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ TMP_ENABLED=${TMP_ENABLED:-0}
2121
TMP_SIZE=${TMP_SIZE:-5000000}
2222

2323
echo "$FLAG" > /tmp/flag.txt
24-
echo "$FLAG" > /home/ctf/flag.txt
25-
echo "$FLAG" > /home/ctf/chal/flag.txt
2624

2725
if [ $TMP_ENABLED -eq 1 ]; then
2826
export TMP_PARAMS=$(cat <<-END

vendor/nsjail/context/nsjail.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ mount: [
7272
dst: "/flag.txt",
7373
is_bind: true,
7474
rw: false
75+
},
76+
{
77+
src: "/tmp/flag.txt",
78+
dst: "/chal/flag.txt",
79+
is_bind: true,
80+
rw: false
7581
}
7682
$TMP_PARAMS
7783
]

0 commit comments

Comments
 (0)