12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# File 'lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_iphlpapi.rb', line 12
def self.create_library(constant_manager, library_path = 'iphlpapi')
dll = Library.new(library_path, constant_manager)
dll.add_function('CancelIPChangeNotify', 'BOOL',[
["PBLOB","notifyOverlapped","in"],
])
dll.add_function('CreateProxyArpEntry', 'DWORD',[
["DWORD","dwAddress","in"],
["DWORD","dwMask","in"],
["DWORD","dwIfIndex","in"],
])
dll.add_function('DeleteIPAddress', 'DWORD',[
["DWORD","NTEContext","in"],
])
dll.add_function('DeleteProxyArpEntry', 'DWORD',[
["DWORD","dwAddress","in"],
["DWORD","dwMask","in"],
["DWORD","dwIfIndex","in"],
])
dll.add_function('FlushIpNetTable', 'DWORD',[
["DWORD","dwIfIndex","in"],
])
dll.add_function('GetAdapterIndex', 'DWORD',[
["PWCHAR","AdapterName","in"],
["PDWORD","IfIndex","inout"],
])
dll.add_function('GetBestInterface', 'DWORD',[
["DWORD","dwDestAddr","in"],
["PDWORD","pdwBestIfIndex","out"],
])
dll.add_function('GetBestInterfaceEx', 'DWORD',[
["PBLOB","pDestAddr","in"],
["PDWORD","pdwBestIfIndex","out"],
])
dll.add_function('GetFriendlyIfIndex', 'DWORD',[
["DWORD","IfIndex","in"],
])
dll.add_function('GetNumberOfInterfaces', 'DWORD',[
["PDWORD","pdwNumIf","out"],
])
dll.add_function('GetRTTAndHopCount', 'BOOL',[
["DWORD","DestIpAddress","in"],
["PULONG","HopCount","out"],
["DWORD","MaxHops","in"],
["PULONG","RTT","out"],
])
dll.add_function('NotifyAddrChange', 'DWORD',[
["PHANDLE","Handle","inout"],
["PBLOB","overlapped","in"],
])
dll.add_function('NotifyRouteChange', 'DWORD',[
["PHANDLE","Handle","inout"],
["PBLOB","overlapped","in"],
])
dll.add_function('SendARP', 'DWORD',[
["DWORD","DestIP","in"],
["DWORD","SrcIP","in"],
["PBLOB","pMacAddr","out"],
["PDWORD","PhyAddrLen","inout"],
])
dll.add_function('SetIpTTL', 'DWORD',[
["DWORD","nTTL","in"],
])
return dll
end
|