home *** CD-ROM | disk | FTP | other *** search
/ ftp.shrubbery.net / 2015-02-07.ftp.shrubbery.net.tar / ftp.shrubbery.net / pub / rancid / rancid-2.3.8.p4.gz / rancid-2.3.8.p4
Text File  |  2013-06-05  |  1KB  |  38 lines

  1. Index: bin/fnrancid.in
  2. ===================================================================
  3. --- bin/fnrancid.in    (revision 2605)
  4. +++ bin/fnrancid.in    (revision 2693)
  5. @@ -180,6 +180,7 @@
  6.      next if (/^\s*Extended DB: .*/);
  7.      next if (/^\s*IPS-DB: .*/);
  8.      next if (/^FortiClient application signature package:/);
  9. +
  10.      ProcessHistory("","","","#$_");
  11.      }
  12.      ProcessHistory("SYSTEM","","","\n");
  13. @@ -208,8 +209,22 @@
  14.      next if (/^\s*!System time:/);
  15.      # remove occurrances of conf_file_ver
  16.      next if (/^#?conf_file_ver=/);
  17. -    # filter variabilities between configurations.  password encryption
  18. -    # upon each display of the configuration.
  19. +
  20. +    # filter cycling RSA private keys
  21. +    if (/^\s*set private-key "-----BEGIN RSA PRIVATE KEY-----/) {
  22. +        ProcessHistory("","","","#$_");
  23. +        ProcessHistory("","","","# <removed>");
  24. +        while (<INPUT>) {
  25. +        tr/\015//d;
  26. +        last if (/$prompt/);
  27. +
  28. +        if (/^\s*-----END RSA PRIVATE KEY-----"/) {
  29. +                ProcessHistory("","","","#$_");
  30. +            last;
  31. +        }
  32. +        }
  33. +    }
  34. +    # filter cycling password encryption
  35.      if (/^\s*(set [^\s]*)\s(Enc\s[^\s]+)(.*)/i && $filter_pwds > 0 ) {
  36.          ProcessHistory("ENC","","","#$1 ENC <removed> $3\n");
  37.          next;
  38.