summaryrefslogtreecommitdiffstats
path: root/sploit/rev/elf.py
diff options
context:
space:
mode:
Diffstat (limited to 'sploit/rev/elf.py')
-rw-r--r--sploit/rev/elf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sploit/rev/elf.py b/sploit/rev/elf.py
index e099819..a009e97 100644
--- a/sploit/rev/elf.py
+++ b/sploit/rev/elf.py
@@ -8,9 +8,10 @@ class ELF:
self.libs = self.__LIBS__(libs)
self.locals = self.__LOCALS__(self)
- def __str__(self):
+ def __repr__(self):
s = 'ELF: '
s += self.path
+ s += '\n------------'
s += '\nSymbol Table'
s += '\n------------'
s += '\n'
@@ -28,7 +29,7 @@ class ELF:
get = super().__getitem__
if(type(get(lib))==str):self[lib] = ELF(get(lib))
return get(lib)
- def __str__(self):
+ def __repr__(self):
s = ''
for name,lib in self.items():
s += '\n' + str(name) + ' => ' + lib if(type(lib)==str) else str(lib.path)