steven-michaud / HookCase

Tool for reverse engineering macOS/OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not Found private symbol "_proc_lock" and "_proc_unlock" On Intel hardware for MacOS 12.5

ccp10841054 opened this issue · comments

kernel_dlsym("_proc_lock")

kernel_dlsym("_proc_unlock")

return NULL;

The macOS 12.5 kernel doesn't contain global symbols with either of these names. So kernel_dlsym() will, of course, return NULL on both of them.

You can only use kernel_dlsym() on symbols that are named in the kernel's symbol table. To get a list of these symbols, do nm -pam /System/Library/Kernels/kernel.

But you shouldn't be altering the HookCase.kext kernel extension's code. You should be writing hook libraries, emulating the example library in https://github.com/steven-michaud/HookCase/tree/master/HookLibraryTemplate. There you can use module_dlsym().