mirror of
https://github.com/byt3bl33d3r/OffensiveDLR
synced 2026-06-06 15:24:29 +00:00
add 'ref' to def of VirtualProtectEx
now it sets _lpflOldProtect_ properly
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ class Inject:
|
||||
pass
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
def VirtualProtectEx(hProcess as int, lpAddress as int, dwSize as int, flNewProtect as uint, lpflOldProtect as uint) as bool:
|
||||
def VirtualProtectEx(hProcess as int, lpAddress as int, dwSize as int, flNewProtect as uint, ref lpflOldProtect as uint) as bool:
|
||||
pass
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
|
||||
Reference in New Issue
Block a user