diff options
author | Malfurious <m@lfurio.us> | 2023-03-11 09:03:56 -0500 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-03-13 19:21:49 -0400 |
commit | 7f6ca05f2448e0f17af5d9aa692fc85b21c3af1e (patch) | |
tree | e4460ce56eff3e254312caf0618c16658d9e0695 | |
parent | 158ff535c4995f70a6fefddee5bc8775d3084ccb (diff) | |
download | sploit-7f6ca05f2448e0f17af5d9aa692fc85b21c3af1e.tar.gz sploit-7f6ca05f2448e0f17af5d9aa692fc85b21c3af1e.zip |
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 <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/rev/elf.py | 4 |
1 files 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__: |