MCPcopy Create free account
hub / github.com/LiteLoaderQQNT/QQNTFileVerifyPatch / Hk_MessageBoxW

Function Hk_MessageBoxW

HijackMethod/dllmain.cpp:294–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294int WINAPI Hk_MessageBoxW(
295 _In_opt_ HWND hWnd,
296 _In_opt_ LPCWSTR lpText,
297 _In_opt_ LPCWSTR lpCaption,
298 _In_ UINT uType
299) {
300 LPCWSTR text = L"�˳�";
301 if (wcscmp(lpCaption, text) == 0) {
302 std::string data;
303 GetCallStack(data);
304 MessageBoxA(hWnd, data.c_str(), "Congratulation", MB_OK);
305 }
306 return Org_MessageBoxW(hWnd,lpText,lpCaption,uType);
307}
308
309void Exploit() {
310 if (MH_Initialize() != MH_OK) {

Callers

nothing calls this directly

Calls 1

GetCallStackFunction · 0.70

Tested by

no test coverage detected