Skip to content

Commit

Permalink
Mark unix encoders as compatible with linux
Browse files Browse the repository at this point in the history
Fixes #18572
  • Loading branch information
zeroSteiner committed Jan 19, 2024
1 parent f56c9fc commit b31abcc
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 b31abcc

Please sign in to comment.