MarioVilas / winappdbg

WinAppDbg Debugger
438 stars 111 forks source link

How to write hex data? #64

Closed qazwsdc closed 4 years ago

qazwsdc commented 4 years ago

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 4 years ago

Try something like this:

process.write(address, “00 10 33”.replace(“ “,””).decode(“hex”))

qazwsdc commented 4 years ago

thanks! And how to read hex value? :)

MarioVilas commented 4 years ago

For more advanced operations you have the textio submodule:

http://winappdbg.sourceforge.net/doc/v1.0/winappdbg.textio.HexInput-class.html

qazwsdc commented 3 years ago

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

MarioVilas commented 3 years ago

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