Escaping a Restricted Shell

You landed a shell and the prompt blinks back at you — but every useful command dies with “restricted.” No cd, no slashes, no redirects. The cage feels solid. It almost never is. Here is exactly why rbash, rksh and lshell leak, and the commands that walk you out.

Related Articles