diff options
author | Malfurious <m@lfurio.us> | 2025-03-16 22:49:42 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2025-03-16 22:49:42 -0400 |
commit | ff2e7a6d219643ffe6fad0b4988305c90e846437 (patch) | |
tree | ac903ed2f677d8808687329de45588f14e337798 /sploit/rev/r2.py | |
parent | 8716c0735f4e158fbab5cc2aa5513670d10a5526 (diff) | |
download | nsploit-ff2e7a6d219643ffe6fad0b4988305c90e846437.tar.gz nsploit-ff2e7a6d219643ffe6fad0b4988305c90e846437.zip |
rev: r2: Fix imported symbol realnames
Radare2 commit 0fcffc4cbf5c ("Use raw symbol name in flatItem.realname
instead of the flag name"), which first appeared in release 5.9.8,
changes the value of "realname" for each of the object's imported
symbols (PLTs).
Previously, a symbol "imp.read" (for instance) would report a realname
of "read". Now the "imp." prefix persists in this value, meaning a
symbol lookup within nsploit like so would fail:
binary.sym.imp.read
binary.sym.imp['imp.read'] # The working lookup
To restore the previous behavior in nsploit, actively filter out the
"imp." substring if it appears at the beginning of a symbol's realname
value. Sploit adds this back in by embedding imported symbols in the
"imp" subtable, as before.
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'sploit/rev/r2.py')
0 files changed, 0 insertions, 0 deletions