Skip to content

cocoahuke/mackextdump

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

machkextdump

Dump Kext information from Macos. Support batch analysis. The disassembly framework used is Capstone

Contact build license paypal

Dump Kext info For iOS:

32bit(arm): ioskextdump_32
64bit(aarch64): ioskextdump

64bit version of iOS10:

64bit(arm): ioskextdump_ios10

How to use

Download

git clone https://github.com/cocoahuke/machkextdump.git && cd machkextdump

Compile and install to /usr/local/bin/

make
make install

Usage

Usage: mackextdump [-s <specify a single exxc file of kext to analysis>] <Extensions folder>

-s example:

mackextdump -s /System/Library/Extensions/IOHIDFamily.kext/Contents/MacOS/IOHIDFamily

or batch analysis kexts copy that from /System/Library/Extensions

mackextdump /System/Library/Extensions

Save the batch analysis output as file, so you got a file that include all kext class, methods name and vtable address, do some searching in this file may give some help to you

mostly rdx are 0xffffffffffffffff, because its super class didn't defined in a same binary file, it reference from outside

All addresses from output are file offset, not virtual memory address

Tested on Macos 10.12.1

Example to use

...
******** 43:com.apple.AMDRadeonAccelerator *******
**/Users/huke/Desktop/mackext_copy/10_12_1_kext/AMDRadeonX3000.kext/Contents/MacOS/AMDRadeonX3000**

(0x3c6d8)->OSMetaClass:OSMetaClass call 4 args list
rdi:0x567488
rsi:AMDR8xxGLContext
rdx:0xffffffffffffffff
rcx:0x1d58
vtable_start: 0x236b00

vtable functions:
AMDR8xxGLContext_E
AMDR8xxGLContext_
AMDR8xxGLContext_getMetaClass
AMDR8xxGLContext_getTargetAndMethodForIndex
IOAccelContext2_getOwningTask
IOAccelContext2_getGPUTask
IOAccelContext2_getOwningTaskPid
...

About

Dump Kext information from Macos. Support batch analysis. The disassembly framework used is Capstone

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published