Browse Source

Add *args to #respond_to?

Technically include_all = false, but *args is lazy mode.
William Vu 3 years ago
parent
commit
b28444777f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      plugins/event_tester.rb

+ 4
- 0
plugins/event_tester.rb View File

@@ -7,6 +7,10 @@ module Msf
7 7
 
8 8
 class Plugin::EventTester < Msf::Plugin
9 9
   class Subscriber
10
+    def respond_to?(name, *args)
11
+      # Why yes, I can do that.
12
+      true
13
+    end
10 14
     def method_missing(name, *args)
11 15
       $stdout.puts("Event fired: #{name}(#{args.join(", ")})")
12 16
     end

Loading…
Cancel
Save