This function https://github.com/JeanExtreme002/PyMemoryEditor/blob/master/PyMemoryEditor/linux/functions.py#L70
(and the similar windows version) are retrieving data.value, which is not correct when you want bytes from ctypes.create_string_buffer.
This should instead be:
ifpytypeisstr:
returndata.value.decode()
elifpytypeisbytes:
returnbytes(data)
else:
returndata.value
If you just return value, it returns cut off bytes, as if it's stopping at null terminators.
This function https://github.com/JeanExtreme002/PyMemoryEditor/blob/master/PyMemoryEditor/linux/functions.py#L70
(and the similar windows version) are retrieving
data.value, which is not correct when you wantbytesfromctypes.create_string_buffer.This should instead be:
If you just return
value, it returns cut off bytes, as if it's stopping at null terminators.