remove report_host data for another PR
parent
dd5ac16240
commit
b875a102fe
|
@ -55,24 +55,9 @@ module Auxiliary::Cisco
|
||||||
|
|
||||||
tuniface = nil
|
tuniface = nil
|
||||||
|
|
||||||
host_info = {
|
|
||||||
:host => thost,
|
|
||||||
:os_name => 'Cisco IOS',
|
|
||||||
}
|
|
||||||
report_host(host_info)
|
|
||||||
|
|
||||||
config.each_line do |line|
|
config.each_line do |line|
|
||||||
case line
|
case line
|
||||||
#
|
#
|
||||||
# Cover host details
|
|
||||||
#
|
|
||||||
when /^version (\d\d\.\d)/i
|
|
||||||
host_info[:os_flavor] = $1.to_s
|
|
||||||
report_host(host_info)
|
|
||||||
when /^hostname (\S+)/i
|
|
||||||
host_info[:name] = $1.to_s
|
|
||||||
report_host(host_info)
|
|
||||||
#
|
|
||||||
# Enable passwords
|
# Enable passwords
|
||||||
#
|
#
|
||||||
when /^\s*enable (password|secret) (\d+) (.*)/i
|
when /^\s*enable (password|secret) (\d+) (.*)/i
|
||||||
|
|
Loading…
Reference in New Issue