Skip to content

Commit

Permalink
update based on cgranleese-r7 review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die-gr3y committed Jul 11, 2024
1 parent 28d6ef9 commit 1ee2131
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def initialize(info = {})
'Linux Dropper',
{
'Platform' => ['linux'],
'Arch' => [ARCH_X86, ARCH_X64, ARCH_AARCH64],
'Arch' => [ARCH_X86, ARCH_X64, ARCH_AARCH64, ARCH_ARMLE],
'Type' => :linux_dropper,
'Linemax' => 16384,
'CmdStagerFlavor' => ['curl', 'wget', 'echo', 'printf', 'bourne'],
Expand Down Expand Up @@ -167,15 +167,10 @@ def execute_command(cmd, _opts = {})

def check
version_number = check_version
return CheckCode::Unknown('Could not retrieve the version information.') if version_number.nil?
return CheckCode::Vulnerable("Version #{version_number}") if version_number.between?(Rex::Version.new('2.25.0'), Rex::Version.new('2.25.1')) || version_number.between?(Rex::Version.new('2.24.0'), Rex::Version.new('2.24.3')) || version_number < Rex::Version.new('2.23.6')

unless version_number.nil?
if version_number.between?(Rex::Version.new('2.25.0'), Rex::Version.new('2.25.1')) || version_number.between?(Rex::Version.new('2.24.0'), Rex::Version.new('2.24.3')) || version_number < Rex::Version.new('2.23.6')
return CheckCode::Vulnerable("Version #{version_number}")
else
return CheckCode::Safe("Version #{version_number}")
end
end
CheckCode::Unknown('Could not retrieve the version information.')
CheckCode::Safe("Version #{version_number}")
end

def exploit
Expand Down

0 comments on commit 1ee2131

Please sign in to comment.