Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
Created January 27, 2017 13:05
Show Gist options
  • Select an option

  • Save un4ckn0wl3z/2032a1ef978cc2c7511a055943fe5524 to your computer and use it in GitHub Desktop.

Select an option

Save un4ckn0wl3z/2032a1ef978cc2c7511a055943fe5524 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