home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / crack / part01 / Scripts / mrgfbk < prev    next >
Encoding:
Text File  |  1991-09-22  |  989 b   |  46 lines

  1. #!/bin/sh
  2.  
  3. ###
  4. # This program written by ADE Muffett (aem@aber.ac.uk), September 1991,
  5. # as part of the 'Crack' password cracking package.
  6. ###
  7.  
  8. ###
  9. # mrgfbk - a shell script to merge all of your feedback files into one
  10. # before starting a Crack -F on a set of new dictionaries. This program
  11. # is called from "Scripts/spotless"
  12. ###
  13. # mrgfbk takes all the feedback files and filters out all the GUESSED
  14. # passwords, and saves them to a new feedback file.  The UNGUESSED
  15. # passwords are deleted, so that the new dictionaries can have a go at
  16. # them
  17. ###
  18.  
  19. tf=./mfb$$
  20.  
  21. echo ""
  22. echo "Saving all CRACKABLE passwords. Do you also want to save your UNCRACKABLE"
  23. echo "passwords ? Answer NO if you have modified to your source dictionaries"
  24. echo "(default: yes)"
  25.  
  26. read answer
  27.  
  28. case $answer in
  29.     [Nn]*)
  30.         cat Runtime/fbk.* |
  31.         awk -F: '$3 == "Y"' |
  32.         sort |
  33.         uniq > $tf
  34.         ;; 
  35.     *)
  36.         cat Runtime/fbk.* |
  37.         sort |
  38.         uniq > $tf
  39.         ;; 
  40. esac        
  41.  
  42. rm -f Runtime/fbk.*
  43. cp $tf Runtime/fbk.merged
  44. rm -f $tf
  45. exit 0
  46.