diff options
author | Gaëtan DUCHAUSSOIS <gaetan.duchaussois@mediapart.fr> | 2016-12-27 15:56:25 +0100 |
---|---|---|
committer | Gaëtan DUCHAUSSOIS <gaetan.duchaussois@mediapart.fr> | 2016-12-27 17:35:56 +0100 |
commit | 78dd28e7c4e284fe131c063114e2ee2687885521 (patch) | |
tree | c88ba21e0cfa6664d03bf80e70d090b333fc0636 /lib | |
parent | a533d4e3d1a4cafb167f46931fb9cc73daedd2f3 (diff) |
Hide remaining passwords
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/ios.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index 040548a..c8b0ef3 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -27,8 +27,8 @@ class IOS < Oxidized::Model 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! /^enable (password|secret) \d \S+/, '<secret hidden>' + cfg.gsub! /^(\s+(?:password|secret)) (?:\d )?\S+/, '\\1 <secret hidden>' cfg.gsub! /wpa-psk ascii \d \S+/, '<secret hidden>' cfg.gsub! /^tacacs-server key \d \S+/, '<secret hidden>' cfg |