Skip to content

Commit

Permalink
fix callbackmon error
Browse files Browse the repository at this point in the history
  • Loading branch information
archercreat committed Oct 31, 2023
1 parent 85ae67b commit 036de14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/callbackmon/callbackmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,7 @@ callbackmon::callbackmon(drakvuf_t drakvuf, const callbackmon_config* config, ou
});
return true;
}, this);

createSyscallHook("MiProcessLoaderEntry", &callbackmon::load_unload_cb);
this->driver_hook = createSyscallHook("MiProcessLoaderEntry", &callbackmon::load_unload_cb);
}

bool callbackmon::stop_impl()
Expand Down
1 change: 1 addition & 0 deletions src/plugins/callbackmon/callbackmon.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class callbackmon : public pluginex
std::unordered_map<addr_t, protocol_cb_t> ndis_protocol_cb;

std::vector<callbackmon_ns::callbackmon_module_t> drivers;
std::unique_ptr<libhook::SyscallHook> driver_hook;

virtual bool stop_impl() override;
};
Expand Down

0 comments on commit 036de14

Please sign in to comment.