Fix #5391, cmd stager documentation fixes
parent
8bd41a3834
commit
6fb2da4f62
|
@ -127,8 +127,8 @@ module Exploit::CmdStager
|
||||||
|
|
||||||
# Show the progress of the upload while cmd staging
|
# Show the progress of the upload while cmd staging
|
||||||
#
|
#
|
||||||
# @param total [Float] The total number of bytes to send
|
# @param total [Float] The total number of bytes to send.
|
||||||
# @param sent [Float] The number of bytes sent
|
# @param sent [Float] The number of bytes sent.
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def progress(total, sent)
|
def progress(total, sent)
|
||||||
done = (sent.to_f / total.to_f) * 100
|
done = (sent.to_f / total.to_f) * 100
|
||||||
|
@ -308,9 +308,10 @@ module Exploit::CmdStager
|
||||||
def execute_cmdstager_end(opts)
|
def execute_cmdstager_end(opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Code to execute each command from the. This method is designed to be
|
# Code called to execute each command via an arbitrary module-defined vector.
|
||||||
# overriden by a module using this mixin.
|
# This method needs to be overriden by modules using this mixin.
|
||||||
#
|
#
|
||||||
|
# @param cmd [String] The command to execute.
|
||||||
# @param opts [Hash] Hash of configuration options.
|
# @param opts [Hash] Hash of configuration options.
|
||||||
def execute_command(cmd, opts)
|
def execute_command(cmd, opts)
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
Loading…
Reference in New Issue