Skip to content

Commit aa79b71

Browse files
author
HD Moore
committed
Fixes rapid7#4897 by corrected kernel32!Interlocked function definitions
1 parent cdef992 commit aa79b71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_kernel32.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,13 +2159,13 @@ def self.create_dll(dll_path = 'kernel32')
21592159
])
21602160

21612161
dll.add_function( 'InterlockedCompareExchange', 'DWORD',[
2162-
["PDWORD","Destination","inout"],
2162+
["PDWORD","Destination","in"],
21632163
["DWORD","ExChange","in"],
21642164
["DWORD","Comperand","in"],
21652165
])
21662166

21672167
dll.add_function( 'InterlockedCompareExchange64', 'LPVOID',[
2168-
["PBLOB","Destination","inout"],
2168+
["PBLOB","Destination","in"],
21692169
["PBLOB","ExChange","in"],
21702170
["PBLOB","Comperand","in"],
21712171
])
@@ -2175,7 +2175,7 @@ def self.create_dll(dll_path = 'kernel32')
21752175
])
21762176

21772177
dll.add_function( 'InterlockedExchange', 'DWORD',[
2178-
["PDWORD","Target","inout"],
2178+
["PDWORD","Target","in"],
21792179
["DWORD","Value","in"],
21802180
])
21812181

0 commit comments

Comments
 (0)