libmem icon indicating copy to clipboard operation
libmem copied to clipboard

`set_memory_ex`:TypeError function takes exactly 3 arguments (4 given)

Open Jai-wei opened this issue 5 months ago • 3 comments

Language:python 3.11 Code:

proc = find_process("notepad++.exe")
new_me = alloc_memory_ex(proc, 1024, PROT_XRW)
set_memory_ex(proc, new_me , b"\x00", 10)

// ERROR 👇
set_memory_ex(proc, new_me , b"\x00", 10)
TypeError: function takes exactly 3 arguments (4 given)

I'm not sure why this error occurs. The set_memory_ex function should have passed in 4 parameters.

Jai-wei avatar Sep 13 '24 06:09 Jai-wei