This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 19th, 2013  |  syntax: None  |  size: 0.38 KB  |  views: 281  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*Does not work*/
  2.  
  3. #include <stdio.h>
  4. #include <Windows.h>
  5.  
  6. int main()
  7. {
  8.         char buffer[2];
  9.         char *sc =
  10.                                 "\x8B\xF4"  //mov esi,esp  
  11.                                 "\x6A\x00"  //push 0  
  12.                                 "\x6A\x00"  //push 0  
  13.                                 "\x6A\x00"  //push 0  
  14.                                 "\x6A\x00"  //push 0
  15.                                 "\xFF\x15\x30\x83\x07\x00";  //call dword ptr [__imp__MessageBoxW@16 (78330h)]  
  16.  
  17.         strcpy(buffer, sc);
  18.    
  19.         return 0;
  20. }
clone this paste RAW Paste Data