Escaping Restricted Shells
First check what commands can we execute. Try running varied commands.
Some command can be abused - check gtfobin - Example vim
vim
:set shell=/bin/sh
:shell
More at:
Shell only allows us to execute the ls
command with a specific set of arguments, such as ls -l
or ls -a
rbash
Add -t bash
to the SSH connection command
Resources
Last updated