Replies: 1 comment 1 reply
-
For new loader API, I suggest two references:
https://docs.pwntools.com/en/stable/elf/elf.html But note this only makes sense for an ELF file, which doesn't have enough information about the image loaded in the memory.
https://github.com/qemu/qemu/blob/dcb40541ebca7ec98a14d461593b3cd7282b4fac/linux-user/qemu.h#L25 Look back to the ELF loader of QEMU usermode, it provides a better representation of image info which might be helpful. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my proposal for GSoC 2022, I have shown a demo to make r2 available to qiling as its "analyzer". To organize concepts like symbol and function, I even add a
bin
folder to represent binary layer. Users can get static analyze functionalities by using APIs likeaddr = ql.analyzer.addr_of("main")
.But after discussion with @wtdcode, I find it more reasonable to make r2 extension independent of qiling's core. Just like the
ELF
class in pwntools,R2
provide direct access tofunction
,symbol
got
andplt
. (The last two may not exist for binary formats other than ELF). And the last three are just mappings from name to address since most time we do not care about details.I am working on it. Feel free to make suggestions.
Beta Was this translation helpful? Give feedback.
All reactions