home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3360 / p-cops.patch1 next >
Encoding:
Text File  |  1991-05-18  |  2.0 KB  |  78 lines

  1. *** pass.chk.old    Fri May 17 11:09:39 1991
  2. --- pass.chk    Fri May 17 11:07:07 1991
  3. ***************
  4. *** 6,12 ****
  5.   #
  6.   #  Usage: $0 [options] dictionary
  7.   #
  8. ! #    -P pfile    password file
  9.   #    -p        print found passwords (incompatible with -M)
  10.   #       -d        check prefix/suffix of digits [0-9]
  11.   #       -g        check all words in gcos, plan, project, signature files
  12. --- 6,12 ----
  13.   #
  14.   #  Usage: $0 [options] dictionary
  15.   #
  16. ! #    -P pfile    password file (not working)
  17.   #    -p        print found passwords (incompatible with -M)
  18.   #       -d        check prefix/suffix of digits [0-9]
  19.   #       -g        check all words in gcos, plan, project, signature files
  20. ***************
  21. *** 21,27 ****
  22.   # other cops stuff, and some things that just didn't fit, and added some
  23.   # code to finish the simulation of the old checker. -- dan
  24.   #
  25.   require "pass.cache.pl";
  26.   
  27.   $Passwd = "/etc/passwd";
  28. --- 21,26 ----
  29. ***************
  30. *** 34,48 ****
  31.   $Move = "/bin/mv";
  32.   $Create = "/bin/touch";
  33.   
  34. ! &Getopts("dgiprsuUvwyo:P:l:b:e:") || do {
  35.       print STDERR "Illegal arguments\n";
  36.       &usage();
  37.       exit(1);
  38.       };
  39.       
  40. ! sub usage {
  41. !     print STDERR "usage: pi -firuwyv -p <pwdfile> -l <logfile>\n          -o <nday> -b <bname> -e <ename>\n";
  42. !     }
  43.   
  44.   # sanity checks
  45.   $opt_P = $Passwd unless $opt_P;
  46. --- 33,45 ----
  47.   $Move = "/bin/mv";
  48.   $Create = "/bin/touch";
  49.   
  50. ! &Getopts("pdgrsuUv") || do {
  51.       print STDERR "Illegal arguments\n";
  52.       &usage();
  53.       exit(1);
  54.       };
  55.       
  56. ! sub usage { print STDERR "Usage: $0 -pdgrsuUv\n"; }
  57.   
  58.   # sanity checks
  59.   $opt_P = $Passwd unless $opt_P;
  60. ***************
  61. *** 69,75 ****
  62.       if ($try = &dopwd()) {
  63.           $pwd = ($opt_p) ? $try : "";
  64.           # printf "Username: %-8s  <password guessed>  $pwd\n",$P[0];
  65. !         printf "Warning!  Password Problem: Guessed: %s\t\t$pwd\n",$P[0];
  66.           }
  67.       $ndone++;
  68.       $time = time();
  69. --- 66,72 ----
  70.       if ($try = &dopwd()) {
  71.           $pwd = ($opt_p) ? $try : "";
  72.           # printf "Username: %-8s  <password guessed>  $pwd\n",$P[0];
  73. !         printf "Warning!  $uid password Problem: Guessed: %s\t\t$pwd\n",$P[0];
  74.           }
  75.       $ndone++;
  76.       $time = time();
  77.