Escaping from restricted shells - Jails
GTFOBins
Modify PATH
echo $PATH #See the path of the executables that you can use
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin #Try to change the path
echo /home/* #List directoryCreate script
red /bin/bash
> w wx/path #Write /bin/bash in a writable and executable pathGet bash from SSH
ssh -t user@<IP> bash # Get directly an interactive shellOther tricks
最后更新于