Land #4200 - report_note handling incorrect protocol names
commit
d207345778
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue