Skip to content

Commit 6fb2da4

Browse files
committed
Fix rapid7#5391, cmd stager documentation fixes
1 parent 8bd41a3 commit 6fb2da4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/msf/core/exploit/cmdstager.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def generate_cmdstager(opts = {}, pl = nil)
127127

128128
# Show the progress of the upload while cmd staging
129129
#
130-
# @param total [Float] The total number of bytes to send
131-
# @param sent [Float] The number of bytes sent
130+
# @param total [Float] The total number of bytes to send.
131+
# @param sent [Float] The number of bytes sent.
132132
# @return [void]
133133
def progress(total, sent)
134134
done = (sent.to_f / total.to_f) * 100
@@ -308,9 +308,10 @@ def execute_cmdstager_begin(opts)
308308
def execute_cmdstager_end(opts)
309309
end
310310

311-
# Code to execute each command from the. This method is designed to be
312-
# overriden by a module using this mixin.
311+
# Code called to execute each command via an arbitrary module-defined vector.
312+
# This method needs to be overriden by modules using this mixin.
313313
#
314+
# @param cmd [String] The command to execute.
314315
# @param opts [Hash] Hash of configuration options.
315316
def execute_command(cmd, opts)
316317
raise NotImplementedError

0 commit comments

Comments
 (0)