last day (15 days later) » 

18:00
⎕←⎕SH
@Zacharý
┌───┐
│⎕SH│
└───┘
⎕←⎕SH 'ls'
@Zacharý
⎕←⎕SH 'ls ..'
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=offls: cannot open directory '..': Permission denied

⍎DOMAIN ERROR: Command interpreter returned failure code 2
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'ls ..'
                                                                                           ∧

Real time: 1.129 s
User time: 1.015 s
Sys. time: 0.064 s
CPU share: 95.60 %
Exit code: 0
18:01
@Zacharý trying to access Adám's directory listings? ;p
No. ;)
well, that's what you're attempting to do with these commands :p
Mostly, I was attempting to see if this was possible.
⎕←⎕SH 'echo TEST'
@Zacharý
┌────┐
│TEST│
└────┘
⎕←⎕SH 'pwd'
18:07
@Zacharý
┌────────────┐
│/home/runner│
└────────────┘
Oh should've expected that, honestly, I've done this with other sites that let you do stuff like this, and they're mostly in /home/runner/
⎕←⎕SH 'gcc'
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=offgcc: fatal error: no input files
compilation terminated.

⍎DOMAIN ERROR: Command interpreter returned failure code 1
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'gcc'
                                                                                           ∧

Real time: 1.020 s
User time: 0.872 s
Sys. time: 0.086 s
CPU share: 93.92 %
Exit code: 0
⎕←⎕SH 'gcc --help'
@Zacharý
┌────────────────────────────┬────────┬─────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────
⎕←⎕SH'cd ..;pwd'
18:11
@EriktheOutgolfer
┌─────┐
│/home│
└─────┘
⎕←⎕SH'ls'
@EriktheOutgolfer
It resets every execution.
I've already tested that with APL variables.
⎕←⎕SH'touch ax;ls'
@EriktheOutgolfer
┌──┐
│ax│
└──┘
18:12
⎕←⎕SH'ls'
@EriktheOutgolfer
⎕←⎕SH'ps -ax'
oh it deletes the files as well
@Zacharý
┌──────────────────────────────────┬───────────────────────────────────────────────────────┬───────────────────────────────────────────────────────┬───────────────────────────────────────┬───────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────┬───────────────────────────────────────┬────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────┬─────────────────────────────────┐
@EriktheOutgolfer @Zacharý The chat bot is just a cover for TIO.
⎕←⎕SH 'shutdown'⍝Might regret this
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=offsh: shutdown: command not found

⍎DOMAIN ERROR: Command interpreter returned failure code 127
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'shutdown'⍝Might regret this
                                                                                           ∧

Real time: 1.347 s
User time: 1.181 s
Sys. time: 0.076 s
CPU share: 93.31 %
Exit code: 0
good luck shutting down TIO
it's heavily sandboxed
It's a challenge, I like that. (And if it's unlikely to happen, there's less risk of me screwing anything up)
⎕←⎕SH 'echo shutdown|bash'⍝Might regret this
⎕←⎕SH 'echo shutdown|bash'⍝Might regret this
18:19
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=offbash: line 1: shutdown: command not found

⍎DOMAIN ERROR: Command interpreter returned failure code 127
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'echo shutdown|bash'⍝Might regret this
                                                                                           ∧

Real time: 1.391 s
User time: 1.196 s
Sys. time: 0.086 s
CPU share: 92.17 %
Exit code: 0
⎕←⎕SH 'pkill --help'
@Zacharý
┌┬──────┬──────────────────────────┬┬────────┬─────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────┬──────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────┬───────────────────────────────────────────────┬───────────────────────────────────────────────────────┬────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────┬────────────────────
⎕←⎕SH 'ps -ax'
@Zacharý
┌──────────────────────────────────┬───────────────────────────────────────────────────────┬───────────────────────────────────────────────────────┬───────────────────────────────────────┬───────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────┬───────────────────────────────────────┬────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────┬─────────────────────────────────┐
⎕←⎕SH'pkill /srv/bin/run-sandbox'
18:22
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=off
⍎DOMAIN ERROR: Command interpreter returned failure code 1
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'pkill /srv/bin/run-sandbox'
                                                                                           ∧

Real time: 1.284 s
User time: 1.052 s
Sys. time: 0.142 s
CPU share: 92.98 %
Exit code: 0
@Zacharý Why don't you just try it on tio.run/#bash?
I feel silly now.
Thanks
⎕←⎕SH'ls /'
@Zacharý
┌───┬────┬───┬───┬────┬───┬─────┬──────────┬─────┬───┬───┬────┬────┬───┬────┬───┬───┬───┬───┬───┐
│bin│boot│dev│etc│home│lib│lib64│lost+found│media│mnt│opt│proc│root│run│sbin│srv│sys│tmp│usr│var│
└───┴────┴───┴───┴────┴───┴─────┴──────────┴─────┴───┴───┴────┴────┴───┴────┴───┴───┴───┴───┴───┘
18:30
Now I can do this without shame, knowing this isn't run on a vulnerable system.
⎕←⎕SH'ls /lib'
@Zacharý
┌─────┬────────┬───┬──────┬───┬────┬──────┬──────┬──────┬─────┬──────┬──────┬───────────┬─────────────┬─────────┬────────┬──────────┬─────┬───┬─────┬───────┬────┬──────┬────┬────┬─────┬─────────┬────┬──────────┬──────────┬──────────┬──────────┬────────┬───┬───────────┬───────────┬───────────┬───┬─────┬──────┬────┬──────────┬─────────────┬──────────────┬─────────┬───────────┬───────────────────────┬──────────────────┬────────────────────┬────────────┬───────────────┬──────────┬────────────┬────────────────┬───────────────┬─────────────────┬────────────────────┬────────────────┬─────
⎕←⎕SH'ls /lib/modules-load.d'
@Zacharý
⎕←⎕SH'python -c ''while 1:echo 1'''
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=off  File "<string>", line 1
    while 1:echo 1
                 ^
SyntaxError: invalid syntax

⍎DOMAIN ERROR: Command interpreter returned failure code 1
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'python -c ''while 1:echo 1'''
                                                                                           ∧

Real time: 1.365 s
User time: 1.160 s
Sys. time: 0.101 s
CPU share: 92.30 %
18:33
>_<. Why did I say echo?
⎕←⎕SH'python -c ''while 1:print(1)'''
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=off
Real time: 60.003 s
User time: 0.005 s
Sys. time: 0.006 s
CPU share: 0.01 %


Filter[1]
Exit code: 124
⎕←⎕SH 'shutdown'
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=offsh: shutdown: command not found

⍎DOMAIN ERROR: Command interpreter returned failure code 127
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'shutdown'
                                                                                           ∧

Real time: 1.206 s
User time: 1.064 s
Sys. time: 0.083 s
CPU share: 95.14 %
Exit code: 0
⎕←⎕SH'killall5 -9'
@Zacharý

Rebuilding user command cache... done
Was OFF -fns=offsh: killall5: command not found

⍎DOMAIN ERROR: Command interpreter returned failure code 127
 __field_initialize_result_←(⎕NS ⍬).⍎'⎕CY''salt''⋄⎕SE.UCMD''box on -fns=on''⊣enableSALT' ⋄ ⎕←⎕SH'killall5 -9'
                                                                                           ∧

Real time: 1.009 s
User time: 0.876 s
Sys. time: 0.080 s
CPU share: 94.76 %
Exit code: 0
18:46
@Zacharý Ping me when done so I can move all these to a "Try breaking TIO" room.
Eh, I'm done now. I'll just keep doing my ideas on TIO-bash until then.
@Zacharý Isn't it easier to modify what you've written (i.e. on tio.run) than to rewrite it all the time here?
Yeah, sometimes I do stupid things like that
73 messages moved from APL

last day (15 days later) »