From 7f6ca05f2448e0f17af5d9aa692fc85b21c3af1e Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 11 Mar 2023 09:03:56 -0500 Subject: elf: Fix visual bug printing libraries list Previously, due to precedence rules, the text produced for any library whose corresponding ELF object has already been initialized would simply be `str(lib.path)`, instead of the intended formatted string. Also fixes a typo. Signed-off-by: Malfurious Signed-off-by: dusoleil --- sploit/rev/elf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sploit/rev/elf.py b/sploit/rev/elf.py index a009e97..78f4e47 100644 --- a/sploit/rev/elf.py +++ b/sploit/rev/elf.py @@ -17,7 +17,7 @@ class ELF: s += '\n' s += str(self.sym) s += '\n------------' - s += '\nLibararies' + s += '\nLibraries' s += '\n------------' s += str(self.libs) return s @@ -32,7 +32,7 @@ class ELF: def __repr__(self): s = '' for name,lib in self.items(): - s += '\n' + str(name) + ' => ' + lib if(type(lib)==str) else str(lib.path) + s += '\n' + str(name) + ' => ' + (lib if(type(lib)==str) else str(lib.path)) return s class __LOCALS__: -- cgit v1.2.3