Class: PSRP::WSMV::ReceiveOutput

Inherits:
Base
  • Object
show all
Defined in:
lib/wsmv/commands/receive.rb

Overview

WSMV message to get output from a remote shell

Instance Method Summary collapse

Methods inherited from Base

#build, #namespaces

Constructor Details

#initialize(session_opts, command_out_opts) ⇒ ReceiveOutput

Returns a new instance of ReceiveOutput.



24
25
26
27
28
29
30
# File 'lib/wsmv/commands/receive.rb', line 24

def initialize(session_opts, command_out_opts)
  @session_opts = session_opts
  @shell_id = command_out_opts[:shell_id]
  @command_id = command_out_opts[:command_id]
  @shell_uri = command_out_opts[:shell_uri] || RESOURCE_URI_POWERSHELL
  @out_streams = command_out_opts[:out_streams] || %w(stdout)
end