Class: Metasploit::Framework::Compiler::Headers::Windows

Inherits:
Base
  • Object
show all
Defined in:
lib/metasploit/framework/compiler/headers/windows.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#loaded_dep

Instance Method Summary collapse

Methods inherited from Base

#include

Constructor Details

#initializeWindows

Initializes the Windows headers.


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/metasploit/framework/compiler/headers/windows.rb', line 14

def initialize
  super
  @headers_path = File.join(Msf::Config.install_root, 'data', 'headers', 'windows')
  @lib_dep_map = {
    'stddef.h'   => [],
    'Windows.h'  => ['stddef.h'],
    'stdlib.h'   => ['stddef.h'],
    'stdio.h'    => ['stddef.h'],
    'String.h'   => ['stddef.h'],
    'Winsock2.h' => ['stddef.h', 'Windows.h'],
    'rc4.h'      => ['String.h', 'stdlib.h'],
    'base64.h'   => ['stddef.h'],
    'xor.h'      => ['stddef.h']
  }
end

Instance Attribute Details

#headers_pathObject

Returns the value of attribute headers_path


11
12
13
# File 'lib/metasploit/framework/compiler/headers/windows.rb', line 11

def headers_path
  @headers_path
end

#lib_dep_mapObject

Returns the value of attribute lib_dep_map


10
11
12
# File 'lib/metasploit/framework/compiler/headers/windows.rb', line 10

def lib_dep_map
  @lib_dep_map
end