From b1fc02bd508674aabcc1c296a0affa223a8ceaba Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Fri, 2 Dec 2016 18:44:33 -0500 Subject: [PATCH 1/2] Ignore update failures --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 2fec779dd..3f98ee42a 100755 --- a/setup.sh +++ b/setup.sh @@ -2,7 +2,7 @@ set -ex if uname | grep -i Linux &>/dev/null; then - sudo apt-get update + sudo apt-get update || true sudo apt-get -y install python-dev python3-dev python-pip python3-pip libglib2.0-dev fi From fa929127c0b70b782fbb5fcc76319a8da8df2b9b Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Fri, 2 Dec 2016 18:45:49 -0500 Subject: [PATCH 2/2] Do not decode section names --- pwndbg/symbol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwndbg/symbol.py b/pwndbg/symbol.py index 85dc2bc84..a024de78e 100644 --- a/pwndbg/symbol.py +++ b/pwndbg/symbol.py @@ -142,7 +142,7 @@ def autofetch(): gdb_command = ['add-symbol-file', local_path, hex(int(base))] for section in elf.iter_sections(): - name = section.name.decode('latin-1') + name = section.name #.decode('latin-1') section = section.header if not section.sh_flags & elftools.elf.constants.SH_FLAGS.SHF_ALLOC: continue