Advertisement
Guest User

BOF.c

a guest
Jan 14th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement