by@nakario_jp
WA
1073ms
while read l;do [ ${l:1:1} = ${l:2:1} ]a=2||a=4 echo ${l:$a:1} done
635 532 263 117 465 652 385 814 435 276 177 597 438 933 322 262 412 213 488 893 988 385 756 863 514 118 213 334 377 968 455 157 964 669 566 668 312 457 532 429 652 652 179 552 955 386 388 334 582 265 547 461 913 331 937 725 511 118 925 118 788 447 154 543
5 1 6 8 2 5 9 2 2 8 3 8 1 3 9 1 6 6 4 4 6 5 3 3 2 4 3 7 1 1 4 5
/code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]' /code.bash: line 2: [: missing `]'
12 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffce0a81010 /* 9 vars */) = 0 13 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x563dec4a0d18 /* 9 vars */) = 0 13 +++ exited with 0 +++ 12 --- 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/cp", ["cp", "-f", "/volume/CODE", "/opt/jails/bash-pure/code.bash"], 0x563dec4a0d58 /* 9 vars */) = 0 14 +++ exited with 0 +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 16 execve("/usr/sbin/jk_chrootlaunch", ["jk_chrootlaunch", "-j", "/opt/jails/bash-pure", "-x", "/bin/bash", "/code.bash"], 0x563dec4e31c0 /* 9 vars */) = 0 15 execve("/bin/cat", ["cat", "-"], 0x563dec4e30d8 /* 9 vars */) = 0 15 +++ exited with 0 +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 16 execve("/bin/bash", ["/bin/bash", "/code.bash"], 0x7ffe35bb4460 /* 9 vars */) = 0 16 +++ exited with 0 +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=1, si_stime=0} --- 17 execve("/bin/rm", ["rm", "/opt/jails/bash-pure/code.bash"], 0x563dec4a0cb8 /* 9 vars */) = 0 17 +++ exited with 0 +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 12 +++ exited with 0 +++