Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/plugins/event_tester.rb
Views: 11705
module Msf1class Plugin::EventTester < Msf::Plugin2class Subscriber3def respond_to?(_name, *_args)4# Why yes, I can do that.5true6end78def method_missing(name, *args)9$stdout.puts("Event fired: #{name}(#{args.join(', ')})")10end11end1213def name14'event_tester'15end1617def desc18'Internal test tool used to verify the internal framework event subscriber logic works'19end2021def initialize(framework, opts)22super23@subscriber = Subscriber.new24framework.events.add_custom_subscriber(@subscriber)25framework.events.add_db_subscriber(@subscriber)26framework.events.add_exploit_subscriber(@subscriber)27framework.events.add_general_subscriber(@subscriber)28framework.events.add_session_subscriber(@subscriber)29framework.events.add_ui_subscriber(@subscriber)30end3132def cleanup33framework.events.remove_custom_subscriber(@subscriber)34framework.events.remove_db_subscriber(@subscriber)35framework.events.remove_exploit_subscriber(@subscriber)36framework.events.remove_general_subscriber(@subscriber)37framework.events.remove_session_subscriber(@subscriber)38framework.events.remove_ui_subscriber(@subscriber)39end40end41end424344