mirror of
https://gitea.tendokyu.moe/TeamTofuShop/capnhook.git
synced 2026-10-02 11:57:56 +03:00
add io and serial to procaddr table
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ hook_lib = static_library(
|
||||
'pe.h',
|
||||
'peb.c',
|
||||
'peb.h',
|
||||
'procaddr.c',
|
||||
'procaddr.h',
|
||||
'process.c',
|
||||
'process.h',
|
||||
'table.c',
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <stdint.h>
|
||||
#include <libgen.h>
|
||||
|
||||
#include "hooklib/procaddr.h"
|
||||
#include "hook/procaddr.h"
|
||||
|
||||
#include "hook/table.h"
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user