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
Wrap
Text File
|
2013-06-05
|
1KB
|
38 lines
Index: bin/fnrancid.in
===================================================================
--- bin/fnrancid.in (revision 2605)
+++ bin/fnrancid.in (revision 2693)
@@ -180,6 +180,7 @@
next if (/^\s*Extended DB: .*/);
next if (/^\s*IPS-DB: .*/);
next if (/^FortiClient application signature package:/);
+
ProcessHistory("","","","#$_");
}
ProcessHistory("SYSTEM","","","\n");
@@ -208,8 +209,22 @@
next if (/^\s*!System time:/);
# remove occurrances of conf_file_ver
next if (/^#?conf_file_ver=/);
- # filter variabilities between configurations. password encryption
- # upon each display of the configuration.
+
+ # filter cycling RSA private keys
+ if (/^\s*set private-key "-----BEGIN RSA PRIVATE KEY-----/) {
+ ProcessHistory("","","","#$_");
+ ProcessHistory("","","","# <removed>");
+ while (<INPUT>) {
+ tr/\015//d;
+ last if (/$prompt/);
+
+ if (/^\s*-----END RSA PRIVATE KEY-----"/) {
+ ProcessHistory("","","","#$_");
+ last;
+ }
+ }
+ }
+ # filter cycling password encryption
if (/^\s*(set [^\s]*)\s(Enc\s[^\s]+)(.*)/i && $filter_pwds > 0 ) {
ProcessHistory("ENC","","","#$1 ENC <removed> $3\n");
next;