Files
metasploit-gs/lib/msf/core/general_event_subscriber.rb
T
2020-12-07 10:31:45 +00:00

39 lines
648 B
Ruby

###
#
# This event subscriber class exposes methods that are called when internal
# framework events occur, such as the loading and creation of a module.
#
###
module Msf::GeneralEventSubscriber
#
# Called when a module is loaded
#
def on_module_load(refname, klass)
end
#
# Called when a new module instance is created
#
def on_module_created(instance)
end
#
# Called when a module is run
#
def on_module_run(instance)
end
#
# Called when a module finishes
#
def on_module_complete(instance)
end
#
# Called when a module raises an exception
#
def on_module_error(instance, exception)
end
end