keyboard_arrow_up

title: How to upgrade a reverse shell with ZSH
date: May 01, 2022
tags: cheatsheets


Upgrade Reverse Shell avec ZSH

For greater discretion and to avoid logging your actions in your history.

unset HISTFILE

We use python

python3 -c 'import pty;pty.spawn("/bin/bash");'

First, we put our shell in the background

CTRL + Z

note the number of rows and columns

stty -a

In the shell of our machine we write

stty raw -echo; fg

Then press Enter twice. Then we set our shell to the right size

stty rows ROW columns COL

Then display the colors

export TERM="xterm-256color"