Cleanups to credential type
git-svn-id: file:///home/svn/framework3/trunk@11297 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
fb7a06b218
commit
644633454d
|
@ -52,7 +52,6 @@ module Auxiliary::Cisco
|
||||||
|
|
||||||
config.each_line do |line|
|
config.each_line do |line|
|
||||||
case line
|
case line
|
||||||
|
|
||||||
#
|
#
|
||||||
# Enable passwords
|
# Enable passwords
|
||||||
#
|
#
|
||||||
|
@ -71,8 +70,8 @@ module Auxiliary::Cisco
|
||||||
|
|
||||||
cred = cred_info.dup
|
cred = cred_info.dup
|
||||||
cred[:pass] = shash
|
cred[:pass] = shash
|
||||||
cred[:type] = "cisco_enable"
|
cred[:type] = "password"
|
||||||
cred[:collect_type] = "cisco_enable"
|
cred[:collect_type] = "password"
|
||||||
store_cred(cred)
|
store_cred(cred)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -83,8 +82,8 @@ module Auxiliary::Cisco
|
||||||
|
|
||||||
cred = cred_info.dup
|
cred = cred_info.dup
|
||||||
cred[:pass] = shash
|
cred[:pass] = shash
|
||||||
cred[:type] = "cisco_enable"
|
cred[:type] = "password"
|
||||||
cred[:collect_type] = "cisco_enable"
|
cred[:collect_type] = "password"
|
||||||
store_cred(cred)
|
store_cred(cred)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -94,8 +93,8 @@ module Auxiliary::Cisco
|
||||||
|
|
||||||
cred = cred_info.dup
|
cred = cred_info.dup
|
||||||
cred[:pass] = spass
|
cred[:pass] = spass
|
||||||
cred[:type] = "cisco_enable"
|
cred[:type] = "password"
|
||||||
cred[:collect_type] = "cisco_enable"
|
cred[:collect_type] = "password"
|
||||||
store_cred(cred)
|
store_cred(cred)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -147,6 +146,11 @@ module Auxiliary::Cisco
|
||||||
#
|
#
|
||||||
# WiFi Passwords
|
# WiFi Passwords
|
||||||
#
|
#
|
||||||
|
when /^\s*encryption key \d+ size \d+bit (\d+) ([^\s]+)/
|
||||||
|
spass = $2.strip
|
||||||
|
print_good("#{thost}:#{tport} Wireless WEP Key: #{spass}")
|
||||||
|
store_loot("cisco.ios.wireless_wep", "text/plain", thost, spass, "wireless_wep.txt", "Cisco IOS Wireless WEP Key")
|
||||||
|
|
||||||
when /^\s*wpa-psk (ascii|hex) (\d+) ([^\s]+)/i
|
when /^\s*wpa-psk (ascii|hex) (\d+) ([^\s]+)/i
|
||||||
|
|
||||||
stype = $2.to_i
|
stype = $2.to_i
|
||||||
|
|
Loading…
Reference in New Issue