diff --git a/lib/msf/base/serializer/readable_text.rb b/lib/msf/base/serializer/readable_text.rb index 90be8dc14d..4a89ca1c2b 100644 --- a/lib/msf/base/serializer/readable_text.rb +++ b/lib/msf/base/serializer/readable_text.rb @@ -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