Files
metasploit-gs/lib/metasploit/framework/compiler/headers/windows.rb
T
2018-07-18 23:13:45 -05:00

36 lines
930 B
Ruby

require 'metasploit/framework/compiler/headers/base'
module Metasploit
module Framework
module Compiler
module Headers
class Windows < Base
attr_accessor :lib_dep_map
attr_accessor :headers_path
# Initializes the Windows headers.
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
end
end
end
end
end