Root/
Source at commit 647 created 13 years 5 months ago. By meklort, Kext patcher update. Fixed bug with HDA patches, untested on 10.6.2 pre kexts. Fixed bug with gma 3150 kext, patch now works on all 10.6.x installs. I need to clean up the patcher / make an api still | |
---|---|
1 | /*␊ |
2 | * Copyright (c) 2009 Evan Lojewski. All rights reserved.␊ |
3 | *␊ |
4 | */␊ |
5 | ␊ |
6 | #include "libsaio.h"␊ |
7 | #include "modules.h"␊ |
8 | ␊ |
9 | void helloWorld(void* binary, void* arg2, void* arg3, void* arg4)␊ |
10 | {␊ |
11 | ␉printf("Hello world from ExecKernel hook. Binary located at 0x%X\n", binary);␊ |
12 | ␉getc();␊ |
13 | ␉␊ |
14 | }␊ |
15 | ␊ |
16 | void HelloWorld_start()␊ |
17 | {␊ |
18 | ␉//printf("Hooking 'ExecKernel'\n");␊ |
19 | ␉register_hook_callback("ExecKernel", &helloWorld);␊ |
20 | ␉register_hook_callback("Kernel Start", &helloWorld);␊ |
21 | ␊ |
22 | }␊ |
23 | ␊ |
24 |