From f74188071fbad2b2bbac6657c7d1ea9dc5f6abe9 Mon Sep 17 00:00:00 2001 From: Juanma Reyes Date: Tue, 25 Apr 2017 23:20:16 +0200 Subject: [PATCH] Hex lengths for windbg's unassemble commands Apparently these parameters take hex values. Not sure whether this is too relevant (maybe also see related [line in mona.py](https://github.com/corelan/mona/blob/master/mona.py#L14110)). --- windbglib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windbglib.py b/windbglib.py index 5af8e20..29b1cc6 100644 --- a/windbglib.py +++ b/windbglib.py @@ -1215,7 +1215,7 @@ def disasmSizeOnly(self,address): def disasmForward(self,address,depth=0): # go to correct location - cmd2run = "u 0x%08x L%d" % (address,depth+1) + cmd2run = "u 0x%08x L%x" % (address,depth+1) try: disasmlist = pykd.dbgCommand(cmd2run) disasmLinesTmp = disasmlist.split("\n") @@ -1245,7 +1245,7 @@ def disasmForwardAddressOnly(self,address,depth): def disasmBackward(self,address,depth): while True: - cmd2run = "ub 0x%08x L%d" % (address,depth) + cmd2run = "ub 0x%08x L%x" % (address,depth) try: disasmlist = pykd.dbgCommand(cmd2run) disasmLinesTmp = disasmlist.split("\n")