#pragma once #include "commons.h" using uint8_t = unsigned char; // You can specify here a default command line for launching hardcoded payload const char Default_Hardcoded_Payload_Parameters[] = "-s 1"; const PayloadEncryption HardcodedEncryptionToUse = PayloadEncryption::Xor32; const PayloadCompression HardcodedCompressionToUse = PayloadCompression::NoCompression; uint8_t HardcodedEncryptionKey[4] = { 0x3f, 0xfa, 0xa8, 0xfe }; #ifndef _WIN64 const size_t HardcodedShellcodeLen = 202; const size_t HardcodedUncompressedShellcodeLen = 202; #else const size_t HardcodedShellcodeLen = 285; const size_t HardcodedUncompressedShellcodeLen = 285; #endif #ifndef _DEBUG uint8_t HardcodedPayloadBytes[1] = { #else uint8_t HardcodedPayloadBytes[] = { #ifndef _WIN64 /* === START x86 === */ // Path: "..\tests\notepad86.bin" 0xc3, 0x12, 0x2a, 0xfe, 0x3f, 0xfa, 0xc8, 0x77, 0xda, 0xcb, 0x68, 0x9a, 0xb4, 0xaa, 0x98, 0x75, 0x6d, 0xf6, 0x23, 0xac, 0x2b, 0x71, 0xda, 0xd6, 0x30, 0x4d, 0xe2, 0xd8, 0x0e, 0x05, 0x04, 0xc2, 0x5e, 0x86, 0xaa, 0xd2, 0x1f, 0x3b, 0x67, 0xf3, 0x3e, 0x3d, 0x4a, 0x0c, 0x6d, 0xad, 0x23, 0xac, 0x2f, 0x71, 0xe2, 0xc2, 0xb4, 0xb6, 0xb9, 0x86, 0xdc, 0xb2, 0xa9, 0x2f, 0x6e, 0x71, 0xf1, 0xde, 0x3e, 0x29, 0x23, 0xb7, 0x27, 0x19, 0x92, 0xb7, 0xb4, 0xce, 0x23, 0xff, 0xe9, 0xcb, 0x57, 0x52, 0xfe, 0x35, 0xa5, 0xff, 0xf8, 0xc2, 0x48, 0x8b, 0xc9, 0xf9, 0xd5, 0x06, 0x04, 0x87, 0x8c, 0x8b, 0xdb, 0xa2, 0x23, 0xa6, 0x1b, 0xfb, 0x7b, 0x98, 0xb4, 0xf6, 0xe3, 0x75, 0x67, 0xe6, 0xa9, 0x2d, 0xb4, 0xfe, 0x23, 0xff, 0xef, 0x73, 0xec, 0xda, 0x1b, 0xa1, 0xf3, 0x9f, 0x66, 0xa0, 0xf9, 0x01, 0xdf, 0xa5, 0xf7, 0xa4, 0xb4, 0xe8, 0x43, 0x73, 0x62, 0x90, 0xa9, 0x73, 0xba, 0x48, 0xa8, 0xfe, 0x3f, 0xaa, 0xc0, 0xcf, 0xb4, 0x95, 0x2f, 0x01, 0xea, 0x41, 0x58, 0x4b, 0x9d, 0xac, 0xc0, 0x58, 0xaa, 0x47, 0x35, 0x01, 0xea, 0xc6, 0xae, 0x82, 0x35, 0x7a, 0x53, 0x1e, 0x4a, 0xff, 0x13, 0xb9, 0x2c, 0x88, 0xc7, 0x94, 0x3f, 0xa9, 0x57, 0x2b, 0x51, 0x95, 0xdc, 0x9b, 0x4f, 0x9b, 0xcc, 0xd0, 0x5a, 0x82, 0xcd, 0xfe, // jmp $ - infinite loop, just in case we get there 0xd4, 0x04, // Leave below marker as is, it indicates whether decryption key was correct. 0x47, 0x40, 0x92, 0xe1 /* === STOP x86 === */ #else /* === START x64 === */ // Path: "..\tests\notepad64.bin" 0xc3, 0xb2, 0x2b, 0x1a, 0xcf, 0x12, 0x68, 0xfe, 0x3f, 0xfa, 0xe9, 0xaf, 0x7e, 0xaa, 0xfa, 0xaf, 0x69, 0xb2, 0x99, 0x2c, 0x5a, 0xb2, 0x23, 0xac, 0x5f, 0xb2, 0x23, 0xac, 0x27, 0xb2, 0x23, 0xac, 0x1f, 0xb2, 0x23, 0x8c, 0x6f, 0xb2, 0xa7, 0x49, 0x75, 0xb0, 0xe5, 0xcf, 0xf6, 0xb2, 0x99, 0x3e, 0x93, 0xc6, 0xc9, 0x82, 0x3d, 0xd6, 0x88, 0xbf, 0xfe, 0x33, 0xa5, 0xbf, 0x3e, 0x3b, 0x4a, 0x13, 0x6d, 0xbb, 0xf9, 0xb6, 0xb4, 0xa8, 0x88, 0x75, 0x7d, 0xc6, 0xe0, 0xff, 0xef, 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x94, 0x3f, 0xa3, 0xe9, 0x77, 0xe5, 0x05, 0x7d, 0x90, 0x50, 0x8e, 0xcd, 0x8e, 0x5e, 0x9e, 0x86, 0x9b, 0x47, 0x9f, 0xa8, // jmp $ - infinite loop, just in case we get there 0x15, 0xc1, // Leave below marker as is, it indicates whether decryption key was correct. 0x15, 0x16, 0x53, 0xe1 /* === STOP x64 === */ #endif #endif };