Fix report_note handling incorrect protocol names

bug/bundler_fix
Julio Auto 2014-11-13 14:30:43 -06:00
parent f081ede2aa
commit e72d9bd21f
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ module Msf::DBManager::Note
sname = nil
case opts[:proto].to_s.downcase # Catch incorrect usages
when 'tcp','udp'
proto = opts[:proto]
proto = opts[:proto].to_s.downcase
sname = opts[:sname] if opts[:sname]
when 'dns','snmp','dhcp'
proto = 'udp'
@ -166,4 +166,4 @@ module Msf::DBManager::Note
ret[:note] = note
}
end
end
end