Skip to content

Commit

Permalink
Land #18720, Mark unix encoders as compatible with linux
Browse files Browse the repository at this point in the history
Merge branch 'land-18720' into upstream-master
  • Loading branch information
bwatters-r7 committed Jan 23, 2024
2 parents 2b938d1 + b31abcc commit 583d39b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions lib/msf/core/encoder.rb
Expand Up @@ -129,19 +129,19 @@ module Type
#
# perl encoding.
#
CmdUnixPerl = 'perl'
CmdPosixPerl = 'perl'
#
# Bourne shell echo encoding.
#
CmdUnixEcho = 'echo'
CmdPosixEcho = 'echo'
#
# Bourne shell ${IFS} encoding.
#
CmdUnixIFS = 'ifs'
CmdPosixIFS = 'ifs'
#
# Bash brace expansion encoding.
#
CmdUnixBrace = 'brace'
CmdPosixBrace = 'brace'
end

#
Expand Down
4 changes: 2 additions & 2 deletions modules/encoders/cmd/brace.rb
Expand Up @@ -16,9 +16,9 @@ def initialize
to avoid whitespace without being overly fancy.
},
'Author' => ['wvu', 'egypt'],
'Platform' => 'unix',
'Platform' => %w[ linux unix ],
'Arch' => ARCH_CMD,
'EncoderType' => Msf::Encoder::Type::CmdUnixBrace
'EncoderType' => Msf::Encoder::Type::CmdPosixBrace
)
end

Expand Down
4 changes: 2 additions & 2 deletions modules/encoders/cmd/echo.rb
Expand Up @@ -14,8 +14,8 @@ def initialize
},
'Author' => 'hdm',
'Arch' => ARCH_CMD,
'Platform' => 'unix',
'EncoderType' => Msf::Encoder::Type::CmdUnixEcho)
'Platform' => %w[ linux unix ],
'EncoderType' => Msf::Encoder::Type::CmdPosixEcho)
end


Expand Down
4 changes: 2 additions & 2 deletions modules/encoders/cmd/ifs.rb
Expand Up @@ -16,9 +16,9 @@ def initialize
without being overly fancy.
},
'Author' => ['egypt', 'wvu'],
'Platform' => 'unix',
'Platform' => %w[ linux unix ],
'Arch' => ARCH_CMD,
'EncoderType' => Msf::Encoder::Type::CmdUnixIFS
'EncoderType' => Msf::Encoder::Type::CmdPosixIFS
)
end

Expand Down
4 changes: 2 additions & 2 deletions modules/encoders/cmd/perl.rb
Expand Up @@ -14,8 +14,8 @@ def initialize
},
'Author' => 'hdm',
'Arch' => ARCH_CMD,
'Platform' => 'unix',
'EncoderType' => Msf::Encoder::Type::CmdUnixPerl)
'Platform' => %w[ linux unix ],
'EncoderType' => Msf::Encoder::Type::CmdPosixPerl)
end


Expand Down
Expand Up @@ -47,7 +47,7 @@ def initialize(info = {})
'Payload' =>
{
'Space' => 466,
'EncoderType' => Msf::Encoder::Type::CmdUnixPerl,
'EncoderType' => Msf::Encoder::Type::CmdPosixPerl,
'Compat' =>
{
'PayloadType' => 'cmd',
Expand Down
2 changes: 1 addition & 1 deletion modules/exploits/solaris/sunrpc/sadmind_exec.rb
Expand Up @@ -35,7 +35,7 @@ def initialize(info = {})
'Space' => 2000,
'BadChars' => "\x00",
'DisableNops' => true,
'EncoderType' => Msf::Encoder::Type::CmdUnixPerl,
'EncoderType' => Msf::Encoder::Type::CmdPosixPerl,
'Compat' =>
{
'PayloadType' => 'cmd',
Expand Down

0 comments on commit 583d39b

Please sign in to comment.