From 1af8b74553e958d35df62ca3c335aa18935671a8 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Fri, 17 Apr 2015 14:08:17 -0400 Subject: [PATCH] Fix dd ambiguity; fix windbg commands on Python27 --- pwndbg/commands/shell.py | 1 - pwndbg/commands/windbg.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pwndbg/commands/shell.py b/pwndbg/commands/shell.py index ef09ab00c..c3c82accc 100644 --- a/pwndbg/commands/shell.py +++ b/pwndbg/commands/shell.py @@ -18,7 +18,6 @@ shellcmds = [ "clear", "cp", "date", - "dd", "diff", "egrep", "find", diff --git a/pwndbg/commands/windbg.py b/pwndbg/commands/windbg.py index 4c91d2671..9b4cb7166 100644 --- a/pwndbg/commands/windbg.py +++ b/pwndbg/commands/windbg.py @@ -56,7 +56,7 @@ def dX(size, address, count, to_string=False): except gdb.MemoryError: break - n_rows = math.ceil(count * size / float(16)) + n_rows = int(math.ceil(count * size / float(16))) row_sz = int(16 / size) rows = [values[i*row_sz:(i+1)*row_sz] for i in range(n_rows)] lines = []