Result

WA

Duration

909ms

Code [DL]

p(read a b
echo $[((b/=10)%11?a:b)%10%a]
p)
p

stdin

722 226
172 725
815 512
422 232
928 381
546 665
654 423
237 386
625 523
543 813
522 276
791 118
835 197
399 291
673 772
564 267
322 885
877 776
311 465
492 334
266 834
329 982
385 451
133 631
831 331
566 236
833 447
484 866
721 323
974 747
248 799
878 118

stdout

stderr

/code.bash: line 1: syntax error near unexpected token `read'
/code.bash: line 1: `p(read a b'

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffefc311890 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55f2cc526d18 /* 9 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/bin/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/bash-pure/code.bash"], 0x55f2cc526d58 /* 9 vars */) = 0
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    execve("/bin/cat", ["cat", "-"], 0x55f2cce3d0d8 /* 9 vars */) = 0
15    execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-pure", "-x", "/bin/bash", "/code.bash"], 0x55f2cce3d1c0 /* 9 vars */) = 0
14    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    execve("/bin/bash", ["/bin/bash", "/code.bash"], 0x7ffe6c06d6f0 /* 9 vars */) = 0
15    +++ exited with 2 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
16    execve("/bin/rm", ["rm", "/opt/jails/bash-pure/code.bash"], 0x55f2cc526cb8 /* 9 vars */) = 0
16    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++