Skip to content

Commit e4bc2a6

Browse files
committed
fix: changed MeterpreterOptions to be platform-specific in pivot
1 parent dd23be9 commit e4bc2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/post/meterpreter/pivot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ def Pivot.create_named_pipe_listener(client, opts={})
8585
c = Class.new(::Msf::Payload)
8686
c.include(::Msf::Payload::Stager)
8787
c.include(::Msf::Payload::TransportConfig)
88-
c.include(::Msf::Sessions::MeterpreterOptions)
8988

9089
# TODO: add more platforms
9190
case opts[:platform]
9291
when 'windows'
92+
c.include(::Msf::Sessions::MeterpreterOptions::Windows) # Moved to be platform-specific
9393
# Include the appropriate reflective dll injection module for the target process architecture...
9494
if opts[:arch] == ARCH_X86
9595
c.include(::Msf::Payload::Windows::MeterpreterLoader)

0 commit comments

Comments
 (0)