Spawning a TTY 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. Shell Spawning python -c 'import pty; pty.spawn("/bin/sh")' echo os.system('/bin/bash') ...

July 27, 2017 · 1 min · Rizal