CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/metasploit/framework/compiler/headers/windows.rb
Views: 1904
1
2
require 'metasploit/framework/compiler/headers/base'
3
4
module Metasploit
5
module Framework
6
module Compiler
7
module Headers
8
class Windows < Base
9
10
attr_accessor :lib_dep_map
11
attr_accessor :headers_path
12
13
# Initializes the Windows headers.
14
def initialize
15
super
16
@headers_path = File.join(Msf::Config.install_root, 'data', 'headers', 'windows')
17
@lib_dep_map = {
18
'stddef.h' => [],
19
'Windows.h' => ['stddef.h'],
20
'stdlib.h' => ['stddef.h'],
21
'stdio.h' => ['stddef.h'],
22
'String.h' => ['stddef.h'],
23
'Winsock2.h' => ['stddef.h', 'Windows.h'],
24
'rc4.h' => ['String.h', 'stdlib.h'],
25
'base64.h' => ['stddef.h'],
26
'xor.h' => ['stddef.h']
27
}
28
end
29
30
end
31
end
32
end
33
end
34
end
35
36
37