summaryrefslogtreecommitdiffstats
path: root/sploit/rev/r2.py
diff options
context:
space:
mode:
Diffstat (limited to 'sploit/rev/r2.py')
-rw-r--r--sploit/rev/r2.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sploit/rev/r2.py b/sploit/rev/r2.py
index f239d09..f00458e 100644
--- a/sploit/rev/r2.py
+++ b/sploit/rev/r2.py
@@ -32,8 +32,7 @@ def get_elf_symbols(elf):
syms = Symtbl(base=base, **syms)
got = json.loads(run_cmd(elf,'irj')[0])
- got = [g for g in got if g['type'].startswith('SET')]
- got = {sym['name']:sym['vaddr'] for sym in got}
+ got = {sym['name']:sym['vaddr'] for sym in got if 'name' in sym}
got = Symtbl(base=sect.get('.got',0), **got)
strings = json.loads(run_cmd(elf,'izj')[0])