#include #include int main(void) { unsigned char shellcode[42] = {255, 254, 116, 0, 101, 0, 115, 0, 116, 0, 101, 0, 105, 0, 110, 0, 115, 0, 122, 0, 119, 0, 111, 0, 101, 0, 105, 0, 110, 0, 115, 0, 122, 0, 119, 0, 111, 0, 50, 0, 50, 0}; printf("All this program does is store shellcode and print this message.\n"); int idx = 0; while ( idx < sizeof(shellcode)) { if (idx == (sizeof(shellcode) - 1) ) { printf("0x%02x ", (unsigned char)shellcode[idx]); } else { printf("0x%02x, ", (unsigned char)shellcode[idx]); } idx++; } }