Skip to content

Commit

Permalink
blacklist: skip systemdetection
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jul 21, 2024
1 parent a0c1f4e commit 6eea1a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/SplinterCellBlacklist.FusionMod/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,12 @@ void Init()
}
}

//skip systemdetection
auto pattern = hook::pattern("0F 84 ? ? ? ? 68 ? ? ? ? 89 B5");
injector::WriteMemory<uint16_t>(pattern.get_first(), 0xE990, true); //jz -> jmp

//HWND
auto pattern = hook::pattern("8B 8E ? ? ? ? 8B 41 04 85 C0");
pattern = hook::pattern("8B 8E ? ? ? ? 8B 41 04 85 C0");
static auto GetHWND = safetyhook::create_mid(pattern.get_first(), [](SafetyHookContext& regs)
{
WindowHandle = (HWND)regs.eax;
Expand Down

0 comments on commit 6eea1a2

Please sign in to comment.