// ./cin < 22.bin o cat 22.bin | ./cin #include #include int main() { char shellcode[64]; // std::cin >> std::noskipws >> shellcode; // 64 bits only std::cin.getline(shellcode, sizeof shellcode); std::cout << "shellcode[" << strlen(shellcode) << "] = " << shellcode << std::endl; ((void (*)())shellcode)(); }