Skip to content

Commit 5adc360

Browse files
committed
Make opts truly optional
1 parent 46239d5 commit 5adc360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/msf/core/exploit/cmdstager.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,22 +306,22 @@ def compatible_flavor?(f)
306306
# overriden by a module this mixin.
307307
#
308308
# @param opts [Hash] Hash of configuration options.
309-
def execute_cmdstager_begin(opts)
309+
def execute_cmdstager_begin(opts = {})
310310
end
311311

312312
# Code to execute after the cmd stager stub. This method is designed to be
313313
# overriden by a module this mixin.
314314
#
315315
# @param opts [Hash] Hash of configuration options.
316-
def execute_cmdstager_end(opts)
316+
def execute_cmdstager_end(opts = {})
317317
end
318318

319319
# Code called to execute each command via an arbitrary module-defined vector.
320320
# This method needs to be overriden by modules using this mixin.
321321
#
322322
# @param cmd [String] The command to execute.
323323
# @param opts [Hash] Hash of configuration options.
324-
def execute_command(cmd, opts)
324+
def execute_command(cmd, opts = {})
325325
raise NotImplementedError
326326
end
327327

0 commit comments

Comments
 (0)