TTY Spawn Shell
Often during pen tests you may obtain a shell without having tty, yet wish to interact further with the system. Here are some commands which will allow you to spawn a tty shell. Obviously some of this will depend on the system environment and installed packages.
Fully Interactive TTY
Step 1:
Which uses Python to spawn a better-featured bash shell. At this point, our shell will look a bit prettier, but we still wonβt be able to use tab autocomplete or the arrow keys.
Step 2:
This will give us access to term commands such as clear
.
Step 3:
Finally (and most importantly) we will background the shell using: CTRL + Z
Back in our own terminal we use:
This does two things: first, it turns off our own terminal echo which gives us access to tab autocompletes, the arrow keys, and Ctrl + C to kill processes.
OS system spawn shell
Bash spawn shell
Perl spawn shell
Ruby spawn shell
Lua spawn shell
IRB spawn shell
VI spawn shell - 1
VI spawn shell - 2
Nmap spawn shell
Last updated