Advertisement
stevennathaniel

Shellcode Latihan3 Dalam C

Aug 21st, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. /*ngetest shellcode latihan3*/
  2.  
  3. const char code[] =
  4. "\xb8\x04\x00\x00\x00"\
  5. "\xbb\x01\x00\x00\x00"\
  6. "\xb9\xe4\x90\x04\x08"\
  7. "\xba\x1a\x00\x00\x00"\
  8. "\xcd\x80"\
  9. "\xb8\x03\x00\x00\x00"\
  10. "\xbb\x02\x00\x00\x00"\
  11. "\xb9\x14\x91\x04\x08"\
  12. "\xba\x05\x00\x00\x00"\
  13. "\xcd\x80"\
  14. "\xb8\x04\x00\x00\x00"\
  15. "\xbb\x01\x00\x00\x00"\
  16. "\xb9\xfe\x90\x04\x08"\
  17. "\xba\x16\x00\x00\x00"\
  18. "\xb8\x04\x00\x00\x00"\
  19. "\xbb\x01\x00\x00\x00"\
  20. "\xb9\x14\x91\x04\x08"\
  21. "\xba\x05\x00\x00\x00"\
  22. "\xcd\x80"\
  23. "\xb8\x01\x00\x00\x00"\
  24. "\xbb\x00\x00\x00\x00"\
  25. "\xcd\x80";
  26.  
  27. int main(int argc, char **argv)
  28.  
  29. {
  30.  
  31.     int (*func)();
  32.     func = (int (*)()) code;
  33.     (int)(*func)();
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement