Land #4200 - report_note handling incorrect protocol names

bug/bundler_fix
sinn3r 2014-11-15 13:16:58 -06:00
commit d207345778
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 4 additions and 3 deletions

View File

@ -75,9 +75,10 @@ module Msf::DBManager::Note
if (opts[:port]) if (opts[:port])
proto = nil proto = nil
sname = nil sname = nil
case opts[:proto].to_s.downcase # Catch incorrect usages proto_lower = opts[:proto].to_s.downcase # Catch incorrect usages
case proto_lower
when 'tcp','udp' when 'tcp','udp'
proto = opts[:proto] proto = proto_lower
sname = opts[:sname] if opts[:sname] sname = opts[:sname] if opts[:sname]
when 'dns','snmp','dhcp' when 'dns','snmp','dhcp'
proto = 'udp' proto = 'udp'