From 0867510416286f609f4006ad7e6145ef0b6d32b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Sat, 30 Nov 2024 01:57:55 +0800 Subject: [PATCH] . --- cpp/LunaHook/LunaHook/engine32/BGI.cpp | 12 +----------- cpp/LunaHook/LunaHook/engine64/BGI.cpp | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/cpp/LunaHook/LunaHook/engine32/BGI.cpp b/cpp/LunaHook/LunaHook/engine32/BGI.cpp index 814aaf2f..0dfcd459 100644 --- a/cpp/LunaHook/LunaHook/engine32/BGI.cpp +++ b/cpp/LunaHook/LunaHook/engine32/BGI.cpp @@ -1548,17 +1548,7 @@ bool InsertBGI4Hook_2() return false; auto addrs = findxref_reverse_checkcallop(addr, processStartAddress, processStopAddress, 0xe8); if (1 != addrs.size()) - { - HookParam hp; - hp.address = addrs[0]; - hp.type = USING_STRING; - hp.filter_fun = [](TextBuffer *buffer, HookParam *) - { - StringFilterBetween(buffer, "<", 1, ">", 1); - }; - hp.offset = GETARG1; - return NewHook(hp, "BGI"); - } + return false; HookParam hp; hp.address = addrs[0] + 5; hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW; diff --git a/cpp/LunaHook/LunaHook/engine64/BGI.cpp b/cpp/LunaHook/LunaHook/engine64/BGI.cpp index d23c8abd..998e3d18 100644 --- a/cpp/LunaHook/LunaHook/engine64/BGI.cpp +++ b/cpp/LunaHook/LunaHook/engine64/BGI.cpp @@ -104,17 +104,7 @@ bool BGIattach_function2() return false; auto addrs = findxref_reverse_checkcallop(addr, processStartAddress, processStopAddress, 0xe8); if (1 != addrs.size()) - { - HookParam hp; - hp.address = addrs[0]; - hp.type = USING_STRING; - hp.filter_fun = [](TextBuffer *buffer, HookParam *) - { - StringFilterBetween(buffer, "<", 1, ">", 1); - }; - hp.offset = GETARG1; - return NewHook(hp, "BGI"); - } + return false; HookParam hp; hp.address = addrs[0] + 5; hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW;