1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| #include <iostream> #include <Windows.h> UCHAR hexData[454] = { 0x55, 0x8B, 0xEC, 0x83, 0xEC, 0x74, 0x64, 0xA1, 0x18, 0x00, 0x00, 0x00, 0x53, 0x56, 0x57, 0x8B, 0x40, 0x30, 0x8B, 0x40, 0x0C, 0x8B, 0x40, 0x0C, 0x8B, 0x00, 0x8B, 0x00, 0x8B, 0x70, 0x18, 0x89, 0x75, 0xF0, 0x8B, 0x46, 0x3C, 0x8B, 0x44, 0x30, 0x78, 0x03, 0xC6, 0x8B, 0x58, 0x14, 0x8B, 0x50, 0x20, 0x8B, 0x78, 0x18, 0x03, 0xD6, 0x8B, 0x48, 0x1C, 0x8B, 0x40, 0x24, 0x03, 0xCE, 0x89, 0x55, 0xE4, 0x03, 0xC6, 0x33, 0xD2, 0x89, 0x5D, 0xD8, 0x85, 0xDB, 0x89, 0x7D, 0xDC, 0x8B, 0x5D, 0xD8, 0x89, 0x4D, 0xF4, 0x89, 0x45, 0xF8, 0x89, 0x55, 0xE8, 0x0F, 0x84, 0xC9, 0x00, 0x00, 0x00, 0x90, 0x83, 0x3C, 0x91, 0x00, 0x0F, 0x84, 0xB1, 0x00, 0x00, 0x00, 0x33, 0xC9, 0x89, 0x4D, 0xFC, 0x85, 0xFF, 0x0F, 0x84, 0xA1, 0x00, 0x00, 0x00, 0x66, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xB7, 0x04, 0x48, 0x3B, 0xC2, 0x0F, 0x85, 0x7D, 0x00, 0x00, 0x00, 0x8B, 0x45, 0xE4, 0x8D, 0x55, 0x8C, 0x33, 0xFF, 0xC7, 0x45, 0x8C, 0x47, 0x65, 0x74, 0x50, 0xC7, 0x45, 0x90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0, 0x6F, 0x78, 0x41, 0x00, 0xC7, 0x45, 0xAC, 0x45, 0x78, 0x69, 0x74, 0xC7, 0x45, 0xB0, 0x50, 0x72, 0x6F, 0x63, 0xC7, 0x45, 0xB4, 0x65, 0x73, 0x73, 0x00, 0xC7, 0x45, 0xC4, 0x75, 0x73, 0x65, 0x72, 0xC7, 0x45, 0xC8, 0x33, 0x32, 0x2E, 0x64, 0x66, 0xC7, 0x45, 0xCC, 0x6C, 0x6C, 0xC6, 0x45, 0xCE, 0x00, 0xC7, 0x45, 0xD0, 0x72, 0x6B, 0x76, 0x69, 0x66, 0xC7, 0x45, 0xD4, 0x72, 0x00, 0xFF, 0xD3, 0x8D, 0x4D, 0xC4, 0x51, 0xFF, 0xD0, 0x8D, 0x4D, 0xB8, 0x51, 0x50, 0xFF, 0xD3, 0x8B, 0xF8, 0x8D, 0x45, 0xAC, 0x50, 0x56, 0xFF, 0xD3, 0x6A, 0x00, 0x8B, 0xF0, 0x8D, 0x45, 0xD0, 0x50, 0x50, 0x6A, 0x00, 0xFF, 0xD7, 0x6A, 0x00, 0xFF, 0xD6, 0x5F, 0x5E, 0x5B, 0x8B, 0xE5, 0x5D, 0xC3, 0x00 }; INT main(VOID) { LPVOID lpShellcode = VirtualAlloc(NULL, 454, MEM_COMMIT, PAGE_EXECUTE_READWRITE); SIZE_T lpNumberOfBytesWritten = 0; WriteProcessMemory(GetCurrentProcess(), lpShellcode, hexData, 454, &lpNumberOfBytesWritten); HANDLE hThread = CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)lpShellcode, NULL, NULL, NULL); WaitForSingleObject(hThread, INFINITE); return 0; };
|