Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: step by step compilation for dummies #7

Open
dryaf opened this issue Jan 18, 2015 · 3 comments
Open

doc: step by step compilation for dummies #7

dryaf opened this issue Jan 18, 2015 · 3 comments

Comments

@dryaf
Copy link

dryaf commented Jan 18, 2015

Hi,

could you make a step by step tutorial for dummies :)
for compiling and installing.

I'm just a ruby coder, so ...
All I want is to see all processes and their connections via dtrace and P_LNOATTACH is in my way and i ended up here ..

regards

@dryaf
Copy link
Author

dryaf commented Jan 18, 2015

I used tyilo@84c5410
do merge distorm into it and was able to build via xcode.
all buildings worked (control, control-gui and kext)
kext and the compiled programs can be found by searching for .kext in ~/Library/

sudo kextload /System/Library/Extensions/onyx-the-black-cat.kext
/System/Library/Extensions/onyx-the-black-cat.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).

i tried signing the kext with a special gdb-root-cert. still no success
of what i read there needs to be a special kext signing cert from apple to build kexts

As I am only a iOS Developer and don't want to pay for becoming a Mac-dev, I ll stop here

@tyilo
Copy link
Contributor

tyilo commented Jan 18, 2015

You need to patch /usr/libexec/kextd, see https://reverse.put.as/2013/11/23/breaking-os-x-signed-kernel-extensions-with-a-nop/

@ecx
Copy link

ecx commented May 24, 2015

don't forget after patching /usr/libexec/kextd reboot and set up correct permissions to this kext:
sudo chown -R root:wheel /System/Library/Extensions/onyx-the-black-cat.kext
sudo chmod -R 755 /System/Library/Extensions/onyx-the-black-cat.kext
after that it will start's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants