bazad / memctl-kext-core Goto Github PK
View Code? Open in Web Editor NEWA memctl core for macOS that uses a kernel extension.
License: MIT License
A memctl core for macOS that uses a kernel extension.
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.