mirror of
https://github.com/byt3bl33d3r/OffensiveDLR
synced 2026-06-06 15:24:29 +00:00
small fix in WriteProcessMemory definition
Now it actually passes a reference to the value, and WriteProcessMemory sets the amount of bytes written.
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class Inject:
|
||||
pass
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
def WriteProcessMemory(hProcess as int, lpBaseAddress as int, lpBuffer as (byte), nSize as int, lpNumberOfBytesWritten as int) as bool:
|
||||
def WriteProcessMemory(hProcess as int, lpBaseAddress as int, lpBuffer as (byte), nSize as int, ref lpNumberOfBytesWritten as int) as bool:
|
||||
pass
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
|
||||
Reference in New Issue
Block a user