File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/exploits/osx/local Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ def initialize(info = {})
40
40
'Arch' => ARCH_X86_64 ,
41
41
'SessionTypes' => [ 'shell' , 'meterpreter' ] ,
42
42
'Targets' => [
43
- [ 'Mac OS X 10.10.2 Yosemite x64 (Native Payload)' , { } ]
43
+ [ 'Mac OS X 10.9- 10.10.2 x64 (Native Payload)' , { } ]
44
44
] ,
45
45
'DefaultTarget' => 0
46
46
) )
47
47
end
48
48
49
49
def check
50
- if ver_lt ( osx_ver , '10.10.3 ' )
50
+ if ver_between ( osx_ver , '10.9' , ' 10.10.2 ')
51
51
Exploit ::CheckCode ::Vulnerable
52
52
else
53
53
Exploit ::CheckCode ::Safe
@@ -78,8 +78,8 @@ def osx_ver
78
78
cmd_exec ( 'sw_vers -productVersion' ) . to_s . strip
79
79
end
80
80
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 ) )
83
83
end
84
84
85
85
end
You can’t perform that action at this time.
0 commit comments