Chameleon

Chameleon Svn Source Tree

Root/branches/meklort/i386/modules/HelloWorld/HelloWorld.c

Source at commit 491 created 13 years 7 months ago.
By meklort, Initial 64bit support. lapic_configure patch is currently 32bit only, however the rest of the patches should work fine on a 64bit kernel. I haven't teted this extensivly, so it may or may not work for everyone.
1/*
2 * Copyright (c) 2009 Evan Lojewski. All rights reserved.
3 *
4 */
5
6#include "libsaio.h"
7#include "modules.h"
8
9void helloWorld(void* binary, void* arg2, void* arg3, void* arg4)
10{
11printf("Hello world from ExecKernel hook. Binary located at 0x%X\n", binary);
12getc();
13
14}
15
16void HelloWorld_start()
17{
18//printf("Hooking 'ExecKernel'\n");
19register_hook_callback("ExecKernel", &helloWorld);
20}
21
22

Archive Download this file

Revision: 491