Skip to content

Commit 3a5de99

Browse files
committed
Update description, rename xnu_ver -> osx_ver.
1 parent 7a3fb12 commit 3a5de99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/exploits/osx/local/iokit_keyboard_root.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize(info={})
2121
corruption in Mac OS X before 10.10. By abusing a bug in the IORegistry, kernel
2222
pointers can also be leaked, allowing a full kASLR bypass.
2323
24-
Tested on Mavericks 10.9.5, and should possibly work on previous versions.
24+
Tested on Mavericks 10.9.5, and should work on previous versions.
2525
2626
The issue has been patched silently in Yosemite.
2727
},
@@ -44,7 +44,7 @@ def initialize(info={})
4444
'Arch' => [ ARCH_X86_64 ],
4545
'SessionTypes' => [ 'shell', 'meterpreter' ],
4646
'Targets' => [
47-
[ 'Mac OS X 10.9 Mavericks x64 (Native Payload)',
47+
[ 'Mac OS X 10.9.5 Mavericks x64 (Native Payload)',
4848
{
4949
'Platform' => 'osx',
5050
'Arch' => ARCH_X86_64
@@ -57,7 +57,7 @@ def initialize(info={})
5757
end
5858

5959
def check
60-
if ver_lt(xnu_ver, "10.10")
60+
if ver_lt(osx_ver, "10.10")
6161
Exploit::CheckCode::Vulnerable
6262
else
6363
Exploit::CheckCode::Safe
@@ -85,7 +85,7 @@ def exploit
8585
cmd_exec("#{tmpfile} #{payloadfile}")
8686
end
8787

88-
def xnu_ver
88+
def osx_ver
8989
cmd_exec("sw_vers -productVersion").to_s.strip
9090
end
9191

0 commit comments

Comments
 (0)