Class: Rex::Payloads::Meterpreter::Config

Inherits:
Object
  • Object
show all
Includes:
Msf::Payload::UUID::Options, Msf::ReflectiveDLLLoader, UriChecksum
Defined in:
lib/rex/payloads/meterpreter/config.rb

Constant Summary collapse

MET =
Rex::Post::Meterpreter

Constants included from UriChecksum

UriChecksum::URI_CHECKSUM_CONN, UriChecksum::URI_CHECKSUM_CONN_MAX_LEN, UriChecksum::URI_CHECKSUM_INITJ, UriChecksum::URI_CHECKSUM_INITN, UriChecksum::URI_CHECKSUM_INITP, UriChecksum::URI_CHECKSUM_INITPH, UriChecksum::URI_CHECKSUM_INITW, UriChecksum::URI_CHECKSUM_INIT_CONN, UriChecksum::URI_CHECKSUM_MIN_LEN, UriChecksum::URI_CHECKSUM_MODES, UriChecksum::URI_CHECKSUM_UUID_MIN_LEN

Constants included from Msf::ReflectiveDLLLoader

Msf::ReflectiveDLLLoader::EXPORT_REFLECTIVELOADER

Instance Method Summary collapse

Methods included from UriChecksum

#generate_uri_checksum, #generate_uri_uuid, #process_cookie_resource, #process_query_string_resource, #process_uri_resource, #process_uuid_string, #uri_checksum_lookup

Methods included from Msf::ReflectiveDLLLoader

#load_rdi_dll, #load_rdi_dll_from_data

Methods included from Msf::Payload::UUID::Options

#generate_payload_uuid, #generate_uri_uuid_mode, #record_payload_uuid, #record_payload_uuid_url

Constructor Details

#initialize(opts = {}) ⇒ Config

Returns a new instance of Config.



17
18
19
20
21
22
23
24
# File 'lib/rex/payloads/meterpreter/config.rb', line 17

def initialize(opts={})
  @opts = opts
  if opts[:ascii_str] == true
    @to_str = self.method(:to_ascii)
  else
    @to_str = self.method(:to_wchar_t)
  end
end

Instance Method Details

#to_bObject



26
27
28
# File 'lib/rex/payloads/meterpreter/config.rb', line 26

def to_b
  config_block
end