Hacking Question:
Download Job Interview Questions and Answers PDF
How do I break out of a restricted shell?
Answer:
On poorly implemented restricted shells you can break out of the
restricted environment by running a program that features a shell
function. A good example is vi. Run vi and use this command:
:set shell=/bin/sh
then shell using this command:
:shell
restricted environment by running a program that features a shell
function. A good example is vi. Run vi and use this command:
:set shell=/bin/sh
then shell using this command:
:shell
Download Hacking Interview Questions And Answers
PDF
Previous Question | Next Question |
What is password shadowing? | How do I gain root from a suid script or program? |