From 84513fd83cfe56882116704ccfd59cfe1f80af5c Mon Sep 17 00:00:00 2001 From: William Vu Date: Fri, 20 Jan 2017 19:56:06 -0600 Subject: [PATCH] Add exception for HttpClient Since it uses Rex::Proto::Http, which then uses Rex::Socket::Tcp. --- lib/msf/base/serializer/readable_text.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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