>>> import ctypes
>>> memfield = (ctypes.c_char).from_address(0x0A7F03E4)
Now you can read memfield, assign it, do whatever you want. If you have access to this memory cell, of course.
you can also get memarray with
>>> memarray = (ctypes.c_char*memoryfieldlen).from_address(0x0A7F03E4)
which gives you a list of memfields.
Update: I just read that you want to get an integer. in this case, of course, use ctypes.c_int. In general: use the appropriate ctype type;)
ch3ka source
share