How to write hex data?
Closed this issue · 5 comments
qazwsdc commented
when I use process.write function. the second param only affect string words.
I want to write hex data such as "00 10 33"
MarioVilas commented
Try something like this:
process.write(address, “00 10 33”.replace(“ “,””).decode(“hex”))
qazwsdc commented
thanks!
And how to read hex value? :)
MarioVilas commented
For more advanced operations you have the textio submodule:
http://winappdbg.sourceforge.net/doc/v1.0/winappdbg.textio.HexInput-class.html
qazwsdc commented
Hi,
Could you please give some example about reading byte data such as "00 12 33"
MarioVilas commented
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