Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount
- Inherits:
-
Base
- Object
- Base
- Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount
- Defined in:
- lib/metasploit/framework/obfuscation/crandomizer/code_factory/gettickcount.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ GetTickCount
constructor
A new instance of GetTickCount.
- #stub ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ GetTickCount
Returns a new instance of GetTickCount.
11 12 13 14 |
# File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/gettickcount.rb', line 11 def initialize super @dep = ['GetTickCount'] end |
Instance Method Details
#stub ⇒ Object
16 17 18 19 20 21 |
# File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/gettickcount.rb', line 16 def stub [ Proc.new { single_gettickcount }, Proc.new { diff_gettickcount } ].sample.call end |