1 [!exec:/bin/sh] skip
2
3 chmod 0777 go1.999999-/run.sh
4 chmod 0777 run.sh
5
6 ! go list all
7 ! stdout 'RAN SCRIPT'
8
9 cd subdir
10 ! go list all
11 ! stdout 'RAN SCRIPT'
12
13 -- go.mod --
14 module exploit
15
16 go 1.21
17 toolchain go1.999999-/run.sh
18 -- go1.999999-/run.sh --
19 #!/bin/sh
20 printf 'RAN SCRIPT\n'
21 exit 1
22 -- run.sh --
23 #!/bin/sh
24 printf 'RAN SCRIPT\n'
25 exit 1
26 -- subdir/go.mod --
27 module exploit
28
29 go 1.21
30 toolchain go1.999999-/../../run.sh
31 -- subdir/go1.999999-/README.txt --
32 heh heh heh
33
View as plain text