I have an address like 0x6041f0
. I know there's an integer sitting out there. In C, I would have simply done *(int *)0x6041f0
to get the integer value present at that address.
How to achieve the same in Python?
PS: I am writing a Python script that uses the gdb
module. The actual program being debugged is in C++. As such a lot of low level manipulation is required.
Something like this:
With that artbitrary address :)
See: ctypes for reference