HACKING LESSON 9
Creating / Generating Software Keys / Serial Numbers
2).Display the comparison.
3).Matches the password character by character.
#include stdio.h
#include string.h
#define PASSWORD_SIZE 100
#define PASSWORD "password\n"
int count=0;
char buff [PASSWORD_SIZE];
printf ("Enter password:");
fgets (&buff [0], PASSWORD_SIZE,stdin);
printf ("Wrong password\n");
else break;
if (++count>3) return -1;
}
printf ("Password OK\n");
}
No comments:
Post a Comment