| 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 | //---␊ |
| 10 | #include "modules.h"␊ |
| 11 | ␊ |
| 12 | ␊ |
| 13 | void helloWorld(void* binary, void* arg2, void* arg3, void* arg4)␊ |
| 14 | {␊ |
| 15 | ␉printf("Hello world from ExecKernel hook. Binary located at 0x%X\n", binary);␊ |
| 16 | ␉getc();␊ |
| 17 | ␉␊ |
| 18 | }␊ |
| 19 | ␊ |
| 20 | void HelloWorld_start()␊ |
| 21 | {␊ |
| 22 | ␉//printf("Hooking 'ExecKernel'\n");␊ |
| 23 | ␉register_hook_callback("ExecKernel", &helloWorld);␊ |
| 24 | }␊ |
| 25 | ␊ |
| 26 | |