Browse Source

Make opts truly optional

William Vu 3 years ago
parent
commit
5adc360b2a
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      lib/msf/core/exploit/cmdstager.rb

+ 3
- 3
lib/msf/core/exploit/cmdstager.rb View File

@@ -306,14 +306,14 @@ module Exploit::CmdStager
306 306
   # overriden by a module this mixin.
307 307
   #
308 308
   # @param opts [Hash] Hash of configuration options.
309
-  def execute_cmdstager_begin(opts)
309
+  def execute_cmdstager_begin(opts = {})
310 310
   end
311 311
 
312 312
   # Code to execute after the cmd stager stub. This method is designed to be
313 313
   # overriden by a module this mixin.
314 314
   #
315 315
   # @param opts [Hash] Hash of configuration options.
316
-  def execute_cmdstager_end(opts)
316
+  def execute_cmdstager_end(opts = {})
317 317
   end
318 318
 
319 319
   # Code called to execute each command via an arbitrary module-defined vector.
@@ -321,7 +321,7 @@ module Exploit::CmdStager
321 321
   #
322 322
   # @param cmd [String] The command to execute.
323 323
   # @param opts [Hash] Hash of configuration options.
324
-  def execute_command(cmd, opts)
324
+  def execute_command(cmd, opts = {})
325 325
     raise NotImplementedError
326 326
   end
327 327
 

Loading…
Cancel
Save