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

Inherits:
Object
  • Object
show all
Includes:
Msf::ReflectiveDLLLoader
Defined in:
lib/rex/payloads/meterpreter/config.rb

Constant Summary collapse

URL_SIZE =
512
UA_SIZE =
256
PROXY_HOST_SIZE =
128
PROXY_USER_SIZE =
64
PROXY_PASS_SIZE =
64
CERT_HASH_SIZE =
20
LOG_PATH_SIZE =
260

Constants included from Msf::ReflectiveDLLLoader

Msf::ReflectiveDLLLoader::EXPORT_REFLECTIVELOADER

Instance Method Summary collapse

Methods included from Msf::ReflectiveDLLLoader

#load_rdi_dll, #load_rdi_dll_from_data

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