SHARE
TWEET

BOF.c

a guest Jan 14th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void smash(char *payload)
  5. {
  6.     char buf[64];
  7.     strcpy(buf, payload);
  8.     printf("%s\n", buf);
  9. }
  10.  
  11. int main(int argc, char *argv[])
  12. {
  13.     smash(argv[1]);
  14.     return 0;
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top