Fix Windbg byte-order

Fix #105
pull/109/head 2016.09.12
Zach Riggle 9 years ago
parent 3460f886a1
commit ced1734e52

@ -79,7 +79,7 @@ class _ParsedCommandPrefix(_ParsedCommand):
def __init__(self, function, inc=True, prefix=True):
super(_ParsedCommand, self).__init__(function, inc, prefix)
def fix(arg, sloppy=False, quiet=False):
def fix(arg, sloppy=False, quiet=True):
if isinstance(arg, gdb.Value):
return arg

@ -173,6 +173,10 @@ def eX(size, address, data, hex=True):
data = codecs.decode(bytestr, 'hex')
else:
data = bytestr
if pwndbg.arch.endian == 'little':
data = data[::-1]
pwndbg.memory.write(address + (i * size), data)
@pwndbg.commands.ParsedCommand

Loading…
Cancel
Save