mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-23 13:55:36 +08:00
fix
This commit is contained in:
parent
99f88ea238
commit
7b61703dcb
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user