OSCP
Search…
Escaping Restricted Shell
Some sysadmins don't want their users to have access to all commands. So they get a restriced shell. If the hacker get access to a user with a restriced shell we need to be able to break out of that, escape it, in order to have more power.
Many linux distros include rshell, which is a restriced shell.
To access the restried shell you can do this:
1
sh -r
2
rsh
3
4
rbash
5
bash -r
6
bash --restricted
7
8
rksh
9
ksh -r
Copied!
Last modified 2yr ago
Copy link