Method: Wpxf::Payload#enqueue_command

Defined in:
lib/wpxf/core/payload.rb

#enqueue_command(cmd) ⇒ Object

Enqueue a command to be executed on the target system, if the payload supports queued commands.

Parameters:

  • cmd (String)

    the command to execute when the payload is executed.



116
117
118
# File 'lib/wpxf/core/payload.rb', line 116

def enqueue_command(cmd)
  queued_commands.push(cmd)
end