Last active
July 9, 2017 19:21
-
-
Save zeldani/53851ba98c1583efd78d85abb99deb97 to your computer and use it in GitHub Desktop.
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 <string.h> | |
#include <stdio.h> | |
int login(char *password) { | |
int secret = 0; | |
char buffer[16]; | |
strcpy(buffer, password); | |
if (secret == 0x231da6e1){ | |
printf("Welcome! ;)\n"); | |
secret = 1; | |
} else { | |
printf("Access Denied.\n"); | |
} | |
} | |
int main(int argc, char *argv[]) { | |
if (argc > 1) | |
login(argv[1]); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment