From 22867ed15378c7fc77c43194cc342e2b80489345 Mon Sep 17 00:00:00 2001 From: thebarbershopper Date: Fri, 18 Mar 2016 09:07:55 -0500 Subject: [PATCH] file.get() returns bytes, autofetch() needs to also write bytes to its file --- pwndbg/symbol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwndbg/symbol.py b/pwndbg/symbol.py index f1bb77868..afe934596 100644 --- a/pwndbg/symbol.py +++ b/pwndbg/symbol.py @@ -89,7 +89,7 @@ def autofetch(): filename = os.path.basename(objfile) local_path = os.path.join(remote_files_dir, filename) - with open(local_path, 'w+') as f: + with open(local_path, 'wb+') as f: f.write(data) remote_files[objfile] = local_path