You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
639 B
38 lines
639 B
|
|
#include <Windows.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
#include "NativeCode.h"
|
|
|
|
UCHAR TestBuffer[]{
|
|
0x48, 0x33, 0xC0,
|
|
0x48, 0x33, 0xC0,
|
|
0xEB, 0x0E,
|
|
0x48, 0x33, 0xC0,
|
|
0x48, 0x33, 0xC0,
|
|
0x7E, 0x06,
|
|
0x48, 0x33, 0xC0,
|
|
0x48, 0x33, 0xC0,
|
|
0x48, 0x33, 0xC0,
|
|
0x48, 0x33, 0xC0,
|
|
0xEB, 0xF8,
|
|
0x50,
|
|
0x48, 0xB8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F,
|
|
0x48, 0x87, 0x04, 0x24,
|
|
0xC3,
|
|
};
|
|
ULONG TestBufferSize = sizeof(TestBuffer);
|
|
|
|
int main()
|
|
{
|
|
NATIVE_CODE_BLOCK Block;
|
|
|
|
XedTablesInit();
|
|
NcFromBuffer(&Block, TestBuffer, TestBufferSize);
|
|
NcDebugPrint(&Block);
|
|
|
|
//PNATIVE_CODE_LINK temp = new NATIVE_CODE_LINK("Hello");
|
|
system("pause");
|
|
|
|
} |