|
远程线程注入版获取SYSTEM权限(2) * : cl CreateRemoteThread_1.c /nologo /Os /G6 /Gs65536 /W3 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /MT /link /RELEASE * : * Create : 2003-10-08 13:37 * Modify : 2003-10-08 17:02 * ----------------------------------------------------------------------- * The only thing they cant take from us are our minds. !H */ /************************************************************************ * * * Head File * * * ************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> /************************************************************************ * * * Macro * * * ************************************************************************/ #pragma comment( linker, "/INCREMENTAL:NO" ) #pragma comment( linker, "/subsystem:console" ) #pragma comment( lib, "kernel32.lib" ) #pragma comment( lib, "advapi32.lib" ) #define VERSION "2.02" #define MAXBUFLEN 8192 #define CHARBASE A #define CHARESCAPE _ #define CHARXOR ^ typedef LONG NTSTATUS; #define NT_SUCCESS(status) ((NTSTATUS)(status)>=0) #define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) typedef LONG KPRIORITY; typedef struct _UNICODE_STRING { USHORT Length;
|