You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.custom_simproc_windows= {}
self.custom_simproc_windows["custom_hook"] = {}
from .windows.custom_hook.HookNameimportHookClass# Replace HookName by the name of the relevant file in procedures/windows/custom_hook/ and HookClass by the name of the SimProcself.custom_simproc_windows["custom_hook"]["HookName"] =HookClass# Same here with HookName and HookClass
While I was able to confirm that the class hooked this way were initialized by placing print statements in HookClass.__init__(), I was not able to confirm whether or not the hook themselves (HookClass.run()) are properly executed.
The text was updated successfully, but these errors were encountered:
Pre-requisites (starting with the default config file)
plugin_hooks = true
in the config filesim_file = true
in the config fileIssue
When analysing a windows executable that contains any recognized hard-coded byte sequence from PluginHooks.internal_function_hooks:
custom_simproc_windows
does not seem to appear in any other place than when it is used inPluginHooks.hook()
.Additional information
Adding something similar to the following snippet in procedures/WindowsSimProcedure.__init__() seems to prevent the crash from happening.
While I was able to confirm that the class hooked this way were initialized by placing print statements in
HookClass.__init__()
, I was not able to confirm whether or not the hook themselves (HookClass.run()
) are properly executed.The text was updated successfully, but these errors were encountered: