Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::OutputDebugString

Inherits:
Base
  • Object
show all
Defined in:
lib/metasploit/framework/obfuscation/crandomizer/code_factory/outputdebugstring.rb

Instance Attribute Summary

Attributes inherited from Base

#code, #dep

Instance Method Summary collapse

Methods inherited from Base

#good_dep?, #normalized_stub

Constructor Details

#initializeOutputDebugString

Returns a new instance of OutputDebugString.



11
12
13
14
# File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/outputdebugstring.rb', line 11

def initialize
  super
  @dep = ['OutputDebugString']
end

Instance Method Details

#stubObject



16
17
18
19
20
21
# File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/outputdebugstring.rb', line 16

def stub
  [
    Proc.new { outputdebugstring_1 },
    Proc.new { outputdebugstring_2 }
  ].sample.call
end