Module: Msf::Session::Provider::SingleCommandExecution

Defined in:
lib/msf/core/session/provider/single_command_execution.rb

Overview

Executes a single command and optionally allows for reading/writing I/O to the new process.

Instance Method Summary collapse

Instance Method Details

#close_cmdObject

Closes the command that was executed.


35
36
# File 'lib/msf/core/session/provider/single_command_execution.rb', line 35

def close_cmd()
end

#init_cmd(command, arguments = nil, opts = nil) ⇒ Object

Initializes the executed command for reading/writing.


17
18
# File 'lib/msf/core/session/provider/single_command_execution.rb', line 17

def init_cmd(command, arguments = nil, opts = nil)
end

#read_cmd(length = nil) ⇒ Object

Reads output from the command.


23
24
# File 'lib/msf/core/session/provider/single_command_execution.rb', line 23

def read_cmd(length = nil)
end

#write_cmd(buf) ⇒ Object

Writes input to the command.


29
30
# File 'lib/msf/core/session/provider/single_command_execution.rb', line 29

def write_cmd(buf)
end