Shell Upgrades¶
Enable tab and autocompletion¶
Format shell size if formatting is bad¶
TTY Upgrade¶
Python
python -c "import pty;pty.spawn('/bin/bash');"
python3 -c "import pty;pty.spawn('/bin/bash');"
Enable "clear" command¶
Setting PATH variable¶
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin/usr/bin:/sbin:/binusr/local/sbin:/usr/local/bin:/usr/sbin:
Break out of rbash¶
Break out of python shell¶
Setup SSH access¶
Add public key to ~/.ssh/authorized_keys and then reconnect to the victim box using SSH if possible.