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

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.


20
21
22
23
24
25
26
27
# File 'lib/rex/payloads/meterpreter/config.rb', line 20

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


29
30
31
# File 'lib/rex/payloads/meterpreter/config.rb', line 29

def to_b
  config_block
end