Guest User

Untitled

a guest
Apr 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <crypt.h>
  3.  
  4. int main(){
  5. char salt[] = "hq";
  6. char *head = "\x71\x68\x63\x67";
  7. char key[9];
  8. for(char c1='0'; c1 <= 'z'; c1++){
  9. for(char c2='0'; c2 <= 'z'; c2++){
  10. for(char c3='0'; c3 <= 'z'; c3++){
  11. for(char c4='0'; c4 <= 'z'; c4++){
  12. sprintf(key, "%s%c%c%c%c",head,c1,c2,c3,c4);
  13. puts(crypt(key,salt));
  14. printf("%s\n",key);
  15. }
  16. }
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment