Commit 7f8c2975 authored by bobloblaw's avatar bobloblaw
Browse files

Update spawning_shells.md

parent 7811a38e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3,9 +3,10 @@


## Non-interactive tty-shell

If you have a non-tty-shell there are certain commands and stuff you can't do. This can happen if you upload reverse shells on a webserver, so that the shell you get is by the user www-data, or similar. These users are not meant to have shells as they don't interact with the system has humans do. 

So if you don't have a tty-shell you can't run `su`, `sudo` for example. This can be annoying if you manage to get a root password but you can't use it.
So if you don't have a tty-shell you can't run **su**, **sudo** for example. This can be annoying if you manage to get a root password but you can't use it.

Anyways, if you get one of these shells you can upgrade it to a tty-shell using the following methods:

@@ -55,6 +56,7 @@ https://github.com/cornerpirate/socat-shell


## References:

http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password

http://netsec.ws/?p=337