Comments (3)
@1livv, what do you mean by "backwards at runtime"? Could you please provide a concrete example of the issue?
from open-source-machlib.
Say that we have an arm binary that has parts of code in classic ARM syntax(32 bit) and parts in ARM THUMB code(16 bit) and these parts are mingled together(a common case).
Let's say that we want to disasm the whole text section. For that we have to switch the capstone MODE (from CS_MODE_ARM to CS_MODE_THUMB and backwards) depending on which part we are in the code(text section).
Something like this:
set_mode (CS_MODE_ARM)
disasm(arm_code, arm_code_size);
set_mode(CS_MODE_THUMB)
disasm(arm_thumb_code, arm_thumb_code_size);
...and so on until the end of the section.
Problem is that right now i don't know of any way of knowing which code portion is in ARM and which code portion is in ARM_THUMB to accordingly set the capstone mode as i move through the buffer.
from open-source-machlib.
@1livv, we need a form of recursive disassembling similar to what IDA Pro is using.
Please ask on the Capstone Engine mailing list whether there is a solution for this.
If not, check whether other (open source) disassemblers may be used; maybe radare2 is an option.
- http://wiki.yobi.be/wiki/Reverse-Engineering
- https://github.com/google/binnavi/wiki/Replacing-IDA-as-Disassembler-Frontend
from open-source-machlib.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-source-machlib.