Class: Msf::Sessions::CommandShellWindows

Inherits:
CommandShell show all
Defined in:
lib/msf/base/sessions/command_shell.rb

Instance Attribute Summary

Attributes inherited from CommandShell

#arch, #platform

Attributes included from Msf::Session::Interactive

#ring, #rstream

Attributes included from Rex::Ui::Interactive

#completed, #interacting, #on_command_proc, #on_print_proc

Attributes included from Rex::Ui::Subscriber::Input

#user_input

Attributes included from Rex::Ui::Subscriber::Output

#user_output

Attributes included from Msf::Session

#alive, #db_record, #exploit, #exploit_datastore, #exploit_task, #exploit_uuid, #framework, #info, #routes, #sid, #sname, #target_host, #target_port, #username, #uuid, #workspace

Attributes included from Framework::Offspring

#framework

Instance Method Summary collapse

Methods inherited from CommandShell

#desc, #execute_file, #process_autoruns, #reset_ring_sequence, #run_cmd, #shell_close, #shell_command, #shell_init, #shell_read, #shell_read_ring, #shell_write, type, #type

Methods included from Msf::Session::Scriptable

#execute_file, #execute_script, included

Methods included from Msf::Session::Provider::SingleCommandShell

#set_shell_token_index, #shell_close, #shell_command_token_unix, #shell_command_token_win32, #shell_init, #shell_read, #shell_read_until_token, #shell_write

Methods included from Msf::Session::Basic

#desc, #type

Methods included from Msf::Session::Interactive

#cleanup, #interactive?, #kill, #run_cmd, #tunnel_local, #tunnel_peer

Methods included from Rex::Ui::Interactive

#detach, #interact

Methods included from Rex::Ui::Subscriber

#copy_ui, #init_ui, #reset_ui

Methods included from Rex::Ui::Subscriber::Input

#gets

Methods included from Rex::Ui::Subscriber::Output

#flush, #print, #print_debug, #print_error, #print_good, #print_line, #print_status, #print_warning

Methods included from Msf::Session

#alive?, #cleanup, #dead?, #desc, #inspect, #interactive?, #kill, #log_file_name, #log_from_local, #log_from_remote, #log_source, #name, #name=, #register?, #session_host, #session_host=, #session_port, #session_port=, #set_from_exploit, #set_via, #tunnel_local, #tunnel_peer, #tunnel_to_s, #type, type, #via_exploit, #via_payload

Constructor Details

#initialize(*args) ⇒ CommandShellWindows

Returns a new instance of CommandShellWindows


318
319
320
321
# File 'lib/msf/base/sessions/command_shell.rb', line 318

def initialize(*args)
  self.platform = "windows"
  super
end

Instance Method Details

#shell_command_token(cmd, timeout = 10) ⇒ Object


322
323
324
# File 'lib/msf/base/sessions/command_shell.rb', line 322

def shell_command_token(cmd,timeout = 10)
  shell_command_token_win32(cmd,timeout)
end