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

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Config

Returns a new instance of Config.



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

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



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

def to_b
  config_block
end