Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount

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

Instance Attribute Summary

Attributes inherited from Base

#code, #dep

Instance Method Summary collapse

Methods inherited from Base

#good_dep?, #normalized_stub

Constructor Details

#initializeGetTickCount

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

#stubObject



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