Guest User

Untitled

a guest
Jan 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <string.h>
  2. #include <stdio.h>
  3.  
  4. int main() {
  5. char salt[] = "oh";
  6. char passwd[] = "a";
  7. char encrypted[] = "ohQDPXpTTCX4s";
  8.  
  9. char c1;
  10.  
  11. for(c1 = 'a' ; c1 < 'z' ; c1++) {
  12. passwd [0] = c1;
  13. if (!strcmp(encrypted,crypt(passwd,salt))) {
  14. printf("Parool on: %s\n, passwd);
  15. return 0;
  16. }
  17. }
  18. }
Add Comment
Please, Sign In to add comment