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:
if pytype is str:
return data.value.decode()
elif pytype is bytes:
return bytes(data)
else:
return data.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.