Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <stdio.h>
- int main() {
- char salt[] = "oh";
- char passwd[] = "a";
- char encrypted[] = "ohQDPXpTTCX4s";
- char c1;
- for(c1 = 'a' ; c1 < 'z' ; c1++) {
- passwd [0] = c1;
- if (!strcmp(encrypted,crypt(passwd,salt))) {
- printf("Parool on: %s\n, passwd);
- return 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment