
Insert the following code echo "started" In Unix based operating systems you will need to schedule a cron job or write a shell script. In Windows you can use the -L flag to keep netcat listening. Netcat stops listening once the connection drops, so attackers need to do a few more things to keep the backdoor running. Use the client to connect to the listener and start a shell prompt.

Backdoorsīackdoors give attackers persistent access to your machine. Netcat also handles raw binary data well, and unlike telnet, commentary messages not sent to stdout. The big question is why not just use telnet? Well for starters netcat is faster than telnet and when things go wrong, you can quickly kill the connection with Control+c.


