Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- int main(void)
- {
- char *mystr=(char*)malloc(sizeof(char)*50),*mypass=(char*)malloc(sizeof(char)*50);
- strcpy(mypass,"MyPassword!!");
- printf("[~] Please Enter your Password Here: ");
- fgets(mystr,49,stdin);
- if (!strcmp(strcat(mypass,"\n"),mystr) )
- printf("\n\n[~] Right Password!\n\n");
- else
- printf("\n\n[!] Wrong Password!\n\n");
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement