diff options
author | Malfurious <m@lfurio.us> | 2023-03-11 08:56:27 -0500 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-03-13 19:21:48 -0400 |
commit | 756fc02e145e176c37af5c5125c55d74d0c89ad3 (patch) | |
tree | 3520619727976c065f53741ed2cee8f06c56a8c8 | |
parent | a412a9a14a73f8041af34f0612c534c80bf9d13d (diff) | |
download | sploit-756fc02e145e176c37af5c5125c55d74d0c89ad3.tar.gz sploit-756fc02e145e176c37af5c5125c55d74d0c89ad3.zip |
symtbl: Display all nested objects in brackets
When printing a human readable Symtbl, show all nested objects within
[brackets], not just Symtbl itself. Primarily useful since more types
are being developed with the intent of being stored in a Symtbl.
Signed-off-by: Malfurious <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/symtbl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sploit/symtbl.py b/sploit/symtbl.py index aa6fc69..e51b72d 100644 --- a/sploit/symtbl.py +++ b/sploit/symtbl.py @@ -175,6 +175,6 @@ class SymtblImpl: s = f"{len(self)} symbols @ {hex(self)}" s += FMT.format("ADDRESS", "SYMBOL") for symbol, offset in sorted(self, key=lambda v: int(v[1])): - disp = f"[{symbol}]" if type(offset) is SymtblImpl else symbol + disp = f"[{symbol}]" if type(offset) is not int else symbol s += FMT.format(hex(offset), disp) return s |