mirror of
https://github.com/NohamR/RMHook-Win.git
synced 2026-05-26 04:17:10 +00:00
Update hook.cpp
This commit is contained in:
@@ -380,16 +380,16 @@ void InstallHooks()
|
|||||||
// else
|
// else
|
||||||
// Log("[+] Hooked mqtt::async_client constructor");
|
// Log("[+] Hooked mqtt::async_client constructor");
|
||||||
|
|
||||||
// void* mqttCreateAddr = ResolveExport(mqttCLib, "MQTTAsync_createWithOptions");
|
void* mqttCreateAddr = ResolveExport(mqttCLib, "MQTTAsync_createWithOptions");
|
||||||
|
|
||||||
// if (MH_CreateHook(
|
if (MH_CreateHook(
|
||||||
// mqttCreateAddr,
|
mqttCreateAddr,
|
||||||
// &hookedMQTTAsyncCreate,
|
&hookedMQTTAsyncCreate,
|
||||||
// reinterpret_cast<void**>(&originalMQTTAsyncCreate)
|
reinterpret_cast<void**>(&originalMQTTAsyncCreate)
|
||||||
// ) != MH_OK)
|
) != MH_OK)
|
||||||
// Log("[ERROR] Failed to hook MQTTAsync_createWithOptions");
|
Log("[ERROR] Failed to hook MQTTAsync_createWithOptions");
|
||||||
// else
|
else
|
||||||
// Log("[+] Hooked MQTTAsync_createWithOptions");
|
Log("[+] Hooked MQTTAsync_createWithOptions");
|
||||||
|
|
||||||
if (MH_CreateHook(
|
if (MH_CreateHook(
|
||||||
createRequestAddr,
|
createRequestAddr,
|
||||||
|
|||||||
Reference in New Issue
Block a user