Linux TTY Shell Cheat Sheet
Introduction
During a penetration test, when obtaining access to a remote Linux host via a reverse/bind shell, it can be very painful to issue certain commands over it and it is often a much better option to obtain an interactive shell. These are the main reason why this is a good idea:
- More shell stability, as things like CTRL+C will no longer close down the connection.
- Ability to use up, down, left, and right arrows to navigate through and modify commands.
- Ability to use applications or commands that use a login prompt such as Sudo, MySQL, SSH, etc.
- Ability to use tab-auto completion in commands.
- Ability to view commands, output, and file contents in the same terminal size as the host machine.
This article will list the various commands that can be used to obtain a TTY shell and also how to turn it into a fully interactive shell.
Read more