Skip to content

Commit 84513fd

Browse files
committed
Add exception for HttpClient
Since it uses Rex::Proto::Http, which then uses Rex::Socket::Tcp.
1 parent 89b2f08 commit 84513fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/msf/base/serializer/readable_text.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,11 @@ def self.dump_options(mod, indent = '', missing = false)
412412
# Hint at RPORT proto by regexing mixins
413413
if name == 'RPORT' && opt.kind_of?(Msf::OptPort)
414414
mod.class.included_modules.each do |m|
415-
if m.name =~ /tcp/i
415+
case m.name
416+
when /tcp/i, /HttpClient$/
416417
desc << ' (TCP)'
417418
break
418-
elsif m.name =~ /udp/i
419+
when /udp/i
419420
desc << ' (UDP)'
420421
break
421422
end

0 commit comments

Comments
 (0)