Experten aus dem binsec-Universum

Interactive Reverse Shell with Netcat via Python

A reverse shell with netcat is unfortunately not interactive. As a result, tools such as sudo, mysql, su etc. are unusable or only usable to a limited extent. If Python is installed on the target system, a terminal can easily be simulated within the Netcat session:

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

Patrick Sauer Posted in: Pentesting

Back to blog