add io and serial to procaddr table

This commit is contained in:
Kevin Trocolli
2023-12-10 18:59:02 -05:00
parent aaeed25995
commit 6b732bfbd6
6 changed files with 11 additions and 3 deletions
+6
View File
@@ -17,6 +17,7 @@
#include "hook/hr.h"
#include "hook/iohook.h"
#include "hook/table.h"
#include "hook/procaddr.h"
/* Helpers */
@@ -230,6 +231,11 @@ static void iohook_init(void)
/* Splice iohook into IAT entries referencing Win32 I/O APIs */
iohook_apply_hooks(NULL);
proc_addr_table_push(
NULL,
"KERNEL32.DLL",
iohook_kernel32_syms,
_countof(iohook_kernel32_syms));
/* Here be dragons:
+2
View File
@@ -17,6 +17,8 @@ hook_lib = static_library(
'pe.h',
'peb.c',
'peb.h',
'procaddr.c',
'procaddr.h',
'process.c',
'process.h',
'table.c',
+1 -1
View File
@@ -3,7 +3,7 @@
#include <stdint.h>
#include <libgen.h>
#include "hooklib/procaddr.h"
#include "hook/procaddr.h"
#include "hook/table.h"
-2
View File
@@ -3,8 +3,6 @@ hooklib_lib = static_library(
include_directories : inc,
c_pch : '../precompiled.h',
sources : [
'procaddr.c',
'procaddr.h',
'serial.c',
'serial.h',
'uart.c',
+2
View File
@@ -17,6 +17,7 @@
#include "hook/table.h"
#include "hooklib/serial.h"
#include "hook/procaddr.h"
/* RS232 API hooks */
@@ -85,6 +86,7 @@ void serial_hook_init(void)
}
serial_hook_apply_hooks(NULL);
proc_addr_table_push(NULL, "KERNEL32.DLL", serial_syms, _countof(serial_syms));
serial_hook_initted = true;
}