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