Created
January 27, 2017 13:05
-
-
Save un4ckn0wl3z/2032a1ef978cc2c7511a055943fe5524 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //vuln.c | |
| #include <stdio.h> | |
| #include <string.h> | |
| int main(int argc, char* argv[]) { | |
| /* [1] */ char buf[256]; | |
| /* [2] */ strcpy(buf,argv[1]); | |
| /* [3] */ printf("Input:%s\n",buf); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment