Advertisement
Guest User

vuln code

a guest
Jun 18th, 2019
393
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 <stdlib.h>
  3. #include <string.h>
  4.  
  5. void vuln(char * s){
  6.   char buf[100];
  7.  
  8.   strcpy(buf,s);
  9.  
  10.   printf("Buf: %s\n", buf);
  11. }
  12.  
  13. void main(int argc, char * argv[]){
  14.  
  15.     vuln(argv[1]);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement