Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on Dalvik Execution #13

Closed
GanbaruTobi opened this issue May 27, 2022 · 3 comments
Closed

Question on Dalvik Execution #13

GanbaruTobi opened this issue May 27, 2022 · 3 comments

Comments

@GanbaruTobi
Copy link

GanbaruTobi commented May 27, 2022

Hi,

the readme states:

"radius2 can execute Dalvik bytecode only involving static methods and variables."

Is this also given for a PCode representation? And what about odex elf binaries?

As r2frida is working on debugging capabilities, could this be used to have a concrete state for the symbolic execution to start and might help radius on execution of dalvik code? See nowsecure/r2frida#284

@aemmitt-ns
Copy link
Owner

radius2 can execute a limited subset of dalvik instructions. basically if it involves any object creation or non-static method then it wont work. also there is no ESIL translation of the CPOOLREF pcode instruction so dalvik will not fully work there either. However you can create a state with r2frida using Radius::frida_state in rust or using radius2 -p frida://... -a 0xcafebabe this will place a frida hook at the address 0xcafebabe and start symbolic execution once this hook is hit, reading the real register and memory values from the program. an example is in examples/frida . So it i possible to hook the odex code and symbolically execute those native instructions.

@aemmitt-ns
Copy link
Owner

sorry i didn't see this sooner

@aemmitt-ns
Copy link
Owner

I am gonna close this issue since it is a subset of what is discussed in your other issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants