Skip to content

Commit 4cc6ac6

Browse files
committed
Clarify vulnerable versions
1 parent c4b7b32 commit 4cc6ac6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/exploits/osx/local/rootpipe.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ def initialize(info = {})
4040
'Arch' => ARCH_X86_64,
4141
'SessionTypes' => ['shell', 'meterpreter'],
4242
'Targets' => [
43-
['Mac OS X 10.10.2 Yosemite x64 (Native Payload)', {}]
43+
['Mac OS X 10.9-10.10.2 x64 (Native Payload)', {}]
4444
],
4545
'DefaultTarget' => 0
4646
))
4747
end
4848

4949
def check
50-
if ver_lt(osx_ver, '10.10.3')
50+
if ver_between(osx_ver, '10.9', '10.10.2')
5151
Exploit::CheckCode::Vulnerable
5252
else
5353
Exploit::CheckCode::Safe
@@ -78,8 +78,8 @@ def osx_ver
7878
cmd_exec('sw_vers -productVersion').to_s.strip
7979
end
8080

81-
def ver_lt(a, b)
82-
Gem::Version.new(a) < Gem::Version.new(b)
81+
def ver_between(a, b, c)
82+
Gem::Version.new(a).between?(Gem::Version.new(b), Gem::Version.new(c))
8383
end
8484

8585
end

0 commit comments

Comments
 (0)