Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Created September 7, 2015 07:32
Show Gist options
  • Save dvas0004/58b42de4c552c07577ef to your computer and use it in GitHub Desktop.
Save dvas0004/58b42de4c552c07577ef to your computer and use it in GitHub Desktop.
Practice reverse engineering simple C programs for forensics
#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