Giter Site home page Giter Site logo

memctl-kext-core's People

Contributors

bazad avatar sferrini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

memctl-kext-core's Issues

[kext] Add dynamic symbols resolution

Hey @bazad, first of all, congrats for the great tool! It's awesome!
I only have one suggestion, and wanted to talk with you about it:

I usually do macOS research with VMs: because I don't want to panic my host when I try stuff that could go wrong (like accidentally accessing unmapped memory, etc.) and also because I can't load kexts when SIP is enabled.

Those VMs have different macOS versions (10.12.6 and 10.13.2 for example).
Instead my host, it's always at the latest version.

The current design of the KernelTask.kext, is that it hardcodes the symbols's offsets with the ones of the OS's kernel (/System/Library/Kernels/kernel) used to compile the kext.

In this way, it's hard to cross compile the kext from the host to the VMs.

Now, @Siguza wrote a similar kext (hsp4) to access the kernel_task from user-space: his kext uses dynamic symbol resolution so that the symbols are resolved at runtime and not hardcoded. Also remaps the kernel_task (instead of copying it) so that you can access the real one.

I think that would be nice to integrate the dynamic symbol resolution in this kext, or better, to use hsp4 as the kext (git submodule?), and modify the core accordingly (or maybe, after adding x86_64 support, memctl-tfp0-core could replace the memctl-kext-core).

Let me know what you think!

Thanks

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.