summaryrefslogtreecommitdiffstats
path: root/nsploit.py
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2025-03-16 22:49:42 -0400
committerMalfurious <m@lfurio.us>2025-03-16 22:49:42 -0400
commitff2e7a6d219643ffe6fad0b4988305c90e846437 (patch)
treeac903ed2f677d8808687329de45588f14e337798 /nsploit.py
parent8716c0735f4e158fbab5cc2aa5513670d10a5526 (diff)
downloadnsploit-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 'nsploit.py')
0 files changed, 0 insertions, 0 deletions