MarioVilas/winappdbg

How to write hex data?

Closed this issue · 5 comments

when I use process.write function. the second param only affect string words.
I want to write hex data such as "00 10 33"

thanks!
And how to read hex value? :)

Hi,
Could you please give some example about reading byte data such as "00 12 33"

Could be something like this:

data = process.read(address, size)
data = data.encode("hex")

If you want the data to look prettier, you have this too: https://winappdbg.readthedocs.io/en/latest/Helpers.html