From 48f72357b59b5307a6bf716aa6435062e7f42adb Mon Sep 17 00:00:00 2001 From: nixawk Date: Tue, 2 Feb 2016 19:56:02 +0800 Subject: [PATCH 1/2] failed to unload event_tester / exit msfconsole --- plugins/event_tester.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/event_tester.rb b/plugins/event_tester.rb index 2320a2c40f..50313a2405 100644 --- a/plugins/event_tester.rb +++ b/plugins/event_tester.rb @@ -7,10 +7,6 @@ module Msf class Plugin::EventTester < Msf::Plugin class Subscriber - def respond_to?(name) - # Why yes, I can do that. - true - end def method_missing(name, *args) $stdout.puts("Event fired: #{name}(#{args.join(", ")})") end From b28444777f74f3543fe8f7c77843ae5b6da85ce5 Mon Sep 17 00:00:00 2001 From: William Vu Date: Tue, 2 Feb 2016 14:29:35 -0600 Subject: [PATCH 2/2] Add *args to #respond_to? Technically include_all = false, but *args is lazy mode. --- plugins/event_tester.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/event_tester.rb b/plugins/event_tester.rb index 50313a2405..cf9e5f62a5 100644 --- a/plugins/event_tester.rb +++ b/plugins/event_tester.rb @@ -7,6 +7,10 @@ module Msf class Plugin::EventTester < Msf::Plugin class Subscriber + def respond_to?(name, *args) + # Why yes, I can do that. + true + end def method_missing(name, *args) $stdout.puts("Event fired: #{name}(#{args.join(", ")})") end