1 | /*␊ |
2 | * Copyright (c) 2009 Evan Lojewski. All rights reserved.␊ |
3 | *␊ |
4 | */␊ |
5 | ␊ |
6 | #include "libsaio.h"␊ |
7 | #include "modules.h"␊ |
8 | ␊ |
9 | void helloWorld2(void* binary, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6)␊ |
10 | {␊ |
11 | ␉printf("Hello world from ExecKernel hook. Binary located at 0x%X\n", binary);␊ |
12 | ␉getc();␊ |
13 | ␉␊ |
14 | }␊ |
15 | ␊ |
16 | void helloWorld(void* arg1, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6)␊ |
17 | {␊ |
18 | ␉printf("Hello world from PreBoot hook.\n");␊ |
19 | ␉getc();␊ |
20 | ␉␊ |
21 | }␊ |
22 | ␊ |
23 | void HelloWorld_start()␊ |
24 | {␊ |
25 | ␉register_hook_callback("ExecKernel", &helloWorld2);␊ |
26 | ␉register_hook_callback("PreBoot", &helloWorld);␊ |
27 | ␊ |
28 | }␊ |
29 | ␊ |
30 | |