Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf
- Inherits:
-
Base
- Object
- Base
- Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf
- Defined in:
- lib/metasploit/framework/obfuscation/crandomizer/code_factory/printf.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Printf
constructor
A new instance of Printf.
- #stub ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ Printf
Returns a new instance of Printf.
11 12 13 14 |
# File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/printf.rb', line 11 def initialize super @dep = ['printf'] end |
Instance Method Details
#stub ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/printf.rb', line 16 def stub %Q| int printf(const char*); void stub() { printf("#{Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_string}"); }| end |