This commit is contained in:
恍兮惚兮 2024-07-26 03:26:08 +08:00
parent 99f88ea238
commit 7b61703dcb

View File

@ -17,7 +17,7 @@ bool InsertArtemisHook() {
for (auto addr : Util::SearchMemory(bytes, sizeof(bytes), PAGE_EXECUTE, processStartAddress, processStopAddress)) { for (auto addr : Util::SearchMemory(bytes, sizeof(bytes), PAGE_EXECUTE, processStartAddress, processStopAddress)) {
HookParam hp; HookParam hp;
hp.address = addr + 1; hp.address = addr + 1;
hp.offset=get_reg(regs::rdi); hp.offset=get_reg(regs::rdx);
hp.type = USING_STRING | CODEC_UTF8 | NO_CONTEXT; hp.type = USING_STRING | CODEC_UTF8 | NO_CONTEXT;
ConsoleOutput("INSERT Artemis Hook "); ConsoleOutput("INSERT Artemis Hook ");
return NewHook(hp, "Artemis"); return NewHook(hp, "Artemis");