Created
September 7, 2015 07:32
-
-
Save dvas0004/58b42de4c552c07577ef to your computer and use it in GitHub Desktop.
Practice reverse engineering simple C programs for forensics
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
#include <stdio.h> | |
int main() | |
{ | |
char password[13]; | |
printf("What's the password? "); | |
fgets(password,13,stdin); | |
if (strcmp(password,"forensics101")==0) { | |
printf("Correct!!\n"); | |
} else { | |
printf("Sorry wrong password\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment