Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::If

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

Instance Attribute Summary

Attributes inherited from Base

#code, #dep

Instance Method Summary collapse

Methods inherited from Base

#good_dep?, #initialize, #normalized_stub

Constructor Details

This class inherits a constructor from Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base

Instance Method Details

#stubObject



11
12
13
14
15
16
17
# File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/if.rb', line 11

def stub
  [
    Proc.new { if_stub },
    Proc.new { if_if_else_stub },
    Proc.new { if_else_stub }
  ].sample.call
end