Class: Msf::Sessions::CommandShell::FileTransfer

Inherits:
Object
  • Object
show all
Includes:
Post::File
Defined in:
lib/msf/base/sessions/command_shell.rb

Overview

Functionality used as part of builtin commands/metashell support that isn’t meant to be exposed as part of the CommandShell’s public API

Instance Method Summary collapse

Methods included from Post::File

#_append_file_powershell, #_append_file_unix_shell, #_can_echo?, #_read_file_meterpreter, #_read_file_powershell, #_read_file_powershell_fragment, #_shell_command_with_success_code, #_unix_max_line_length, #_win_ansi_append_file, #_win_ansi_write_file, #_win_bin_append_file, #_win_bin_write_file, #_write_file_meterpreter, #_write_file_powershell, #_write_file_powershell_fragment, #_write_file_unix_shell, #append_file, #attributes, #cd, #chmod, #copy_file, #dir, #directory?, #executable?, #exist?, #expand_path, #exploit_data, #exploit_source, #file?, #file_local_write, #file_remote_digestmd5, #file_remote_digestsha1, #file_remote_digestsha2, #immutable?, #mkdir, #pwd, #read_file, #readable?, #rename_file, #rm_f, #rm_rf, #setuid?, #stat, #upload_and_chmodx, #upload_file, #writable?, #write_file

Methods included from Post::Common

#clear_screen, #cmd_exec, #cmd_exec_get_pid, #cmd_exec_with_result, #command_exists?, #get_env, #get_envs, #peer, #report_virtualization, #rhost, #rport

Constructor Details

#initialize(session) ⇒ FileTransfer

Returns a new instance of FileTransfer.

Parameters:



786
787
788
# File 'lib/msf/base/sessions/command_shell.rb', line 786

def initialize(session)
  @session = session
end