Add exception for HttpClient

Since it uses Rex::Proto::Http, which then uses Rex::Socket::Tcp.
bug/bundler_fix
William Vu 2017-01-20 19:56:06 -06:00
parent 89b2f087fc
commit 84513fd83c
1 changed files with 3 additions and 2 deletions

View File

@ -412,10 +412,11 @@ class ReadableText
# Hint at RPORT proto by regexing mixins
if name == 'RPORT' && opt.kind_of?(Msf::OptPort)
mod.class.included_modules.each do |m|
if m.name =~ /tcp/i
case m.name
when /tcp/i, /HttpClient$/
desc << ' (TCP)'
break
elsif m.name =~ /udp/i
when /udp/i
desc << ' (UDP)'
break
end