Git Product home page Git Product logo

mackextdump's Introduction

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
...

mackextdump's People

Contributors

cocoahuke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.