Class: Msf::Sessions::Meterpreter_x86_Win

Inherits:
Meterpreter show all
Defined in:
lib/msf/base/sessions/meterpreter_x86_win.rb

Overview

This class creates a platform-specific meterpreter session type

Constant Summary

Constants included from Rex::Post::Meterpreter::PacketDispatcher

Rex::Post::Meterpreter::PacketDispatcher::PacketTimeout

Instance Attribute Summary

Attributes inherited from Meterpreter

#binary_suffix, #console, #platform, #skip_ssl, #target_id

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

Attributes inherited from Rex::Post::Meterpreter::Client

#alive, #capabilities, #comm_timeout, #commands, #conn_id, #encode_unicode, #expiration, #ext, #passive_dispatcher, #response_timeout, #send_keepalives, #sock, #ssl, #target_id, #url

Attributes included from Rex::Post::Meterpreter::ChannelContainer

#channels

Attributes included from Rex::Post::Meterpreter::PacketDispatcher

#comm_mutex, #passive_service, #recv_queue, #send_queue

Instance Method Summary collapse

Methods inherited from Meterpreter

#_interact, #cleanup, #create, #desc, #execute_file, #init_ui, #kill, #load_priv, #load_session_info, #load_stdapi, #queue_cmd, #reset_ui, #run_cmd, #shell_close, #shell_command, #shell_init, #shell_read, #shell_write, #supports_ssl?, #supports_zlib?, #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, #shell_command_token_unix, #shell_command_token_win32, #shell_init, #shell_read, #shell_read_until_token, #shell_write

Methods included from Msf::Session::Comm

#create

Methods included from Rex::Socket::Comm

#chainable?, create, #deregister_event_handler, #each_event_handler, #notify_before_socket_create, #notify_socket_created, #register_event_handler

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

Methods inherited from Rex::Post::Meterpreter::Client

#add_extension, check_ext_hash, #cleanup_meterpreter, default_timeout, #deregister_extension, #deregister_extension_alias, #dump_extension_tree, #each_extension, #generate_ssl_context, #init_meterpreter, lookup_error, #method_missing, #register_extension_alias, #register_extension_aliases, set_ext_hash, #swap_sock_plain_to_ssl, #swap_sock_ssl_to_plain, #unicode_filter_decode, #unicode_filter_encode

Methods included from Rex::Post::Meterpreter::ChannelContainer

#add_channel, #find_channel, #initialize_channels, #remove_channel

Methods included from Rex::Post::Meterpreter::PacketDispatcher

#add_response_waiter, #deregister_inbound_handler, #dispatch_inbound_packet, #initialize_inbound_handlers, #initialize_passive_dispatcher, #monitor_socket, #monitor_stop, #notify_response_waiter, #on_passive_request, #receive_packet, #register_inbound_handler, #remove_response_waiter, #send_packet, #send_packet_wait_response, #send_request, #shutdown_passive_dispatcher

Constructor Details

#initialize(rstream, opts = {}) ⇒ Meterpreter_x86_Win


15
16
17
18
19
# File 'lib/msf/base/sessions/meterpreter_x86_win.rb', line 15

def initialize(rstream,opts={})
  super
  self.platform      = 'x86/win32'
  self.binary_suffix = 'x86.dll'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Rex::Post::Meterpreter::Client

Instance Method Details

#lookup_error(code) ⇒ Object


21
22
23
# File 'lib/msf/base/sessions/meterpreter_x86_win.rb', line 21

def lookup_error(code)
  Msf::WindowsError.description(code)
end