Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
Created October 5, 2016 16:15
Show Gist options
  • Save un4ckn0wl3z/e1259c446ef25018c0040f20683de339 to your computer and use it in GitHub Desktop.
Save un4ckn0wl3z/e1259c446ef25018c0040f20683de339 to your computer and use it in GitHub Desktop.
//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