Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Compile with gcc -m32 -o password password.c
- #include <stdio.h>
- #include <string.h>
- int main() {
- char *password = "ThisIsMyPassword\n";
- char input[151];
- puts("Please enter the password:");
- fgets(input, 149, stdin);
- if (strcmp(input, password) == 0) {
- puts("Success!");
- } else {
- puts("Fail!");
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement