summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormattttv <dev.matv@xoxy.net>2016-12-14 13:31:34 +0100
committerMatthias Vierthaler <m.vierthaler@conova.com>2016-12-14 13:31:34 +0100
commit72bc119966b20eb239c989ceb833051791f44007 (patch)
tree3f9e2eb2efbbd68a4c9399532ff6731a927db0d8 /lib
parentbc64aaa7971070e21300eb1b15846ec1c7b4fdcb (diff)
delete secret password if it is called secret
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/ios.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb
index 1f099c8..3cbe0f0 100644
--- a/lib/oxidized/model/ios.rb
+++ b/lib/oxidized/model/ios.rb
@@ -26,7 +26,9 @@ class IOS < Oxidized::Model
cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>'
cfg.gsub! /username (\S+) privilege (\d+) (\S+).*/, '<secret hidden>'
cfg.gsub! /^username \S+ password \d \S+/, '<secret hidden>'
+ cfg.gsub! /^username \S+ secret \d \S+/, '<secret hidden>'
cfg.gsub! /^enable password \d \S+/, '<secret hidden>'
+ cfg.gsub! /^enable secret \d \S+/, '<secret hidden>'
cfg.gsub! /wpa-psk ascii \d \S+/, '<secret hidden>'
cfg.gsub! /^tacacs-server key \d \S+/, '<secret hidden>'
cfg