Skip to content

Instantly share code, notes, and snippets.

@mdeous
Created March 29, 2014 21:14
Show Gist options
  • Save mdeous/9863156 to your computer and use it in GitHub Desktop.
Save mdeous/9863156 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[]){
FILE *secret = fopen("/challenge/binary/binary5/.passwd", "rt");
char buffer[32];
fgets(buffer, sizeof(buffer), secret);
printf(argv[1]);
fclose(secret);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment