Upgrade Shell

Upgrading your shell - Linux

Upon initial access, it is crucial to achieve the highest functional shell possible for privesc purposes!

# On victim machine

which python[3]

python[3] -c 'import pty;pty.spawn("/bin/bash")'

# background the listener using ctrl+z

stty -a # notice the number of rows and columns

stty raw -echo

# foreground the process: type fg, press enter

stty rows xx

stty columns xxx

export TERM=xterm-256color

Escaping jailed Shells > Go here

Last updated