| 292 | } |
| 293 | |
| 294 | int 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 | |
| 309 | void Exploit() { |
| 310 | if (MH_Initialize() != MH_OK) { |
nothing calls this directly
no test coverage detected