GithubHelp home page GithubHelp logo

Comments (9)

yegord avatar yegord commented on July 22, 2024 1

I agree. I would try something like:

  1. Scan through the executable section, try to disassemble N instructions in a row (you can also use various hints, e.g., symbols and the executable's entry point, for the starting points).
  2. If disassembly succeeds, run recursive traversal from the address of the first instruction.

The traversal I have already implemented once, although never got to actually using it: 7f1e836. The traversal constructs control-flow graph on the fly and uses DataflowAnalyzer to perform abstract interpretation, so, it should be able to tell you the jump destinations, in particular, switches from/to THUMB mode.

One can take the above code as a starting point and do some experiments with it.

from snowman.

yegord avatar yegord commented on July 22, 2024 1

IDA already knows the ranges of addresses belonging to a function. Not sure, although, if it includes data into these ranges. If it does not, the IDA plug-in should not have problems with interpreting data as code. If it does, maybe we need to find where the instructions exactly are (IDA has getFlags() function for this), and update IdaFrontend::functionAddresses() to report only ranges of addresses containing executable code.

But this does not dismiss the need in a better discovery of the code.

from snowman.

nihilus avatar nihilus commented on July 22, 2024

Well couldnt this already piggyback on IDA? However a purely free ARM decompiler is welcomed.

from snowman.

yegord avatar yegord commented on July 22, 2024

seems to suffer quite a bit from confusing code

Can you provide an example?

from snowman.

hlide avatar hlide commented on July 22, 2024

are you speaking about stuff like ROP gadget ?

from snowman.

yegord avatar yegord commented on July 22, 2024

Related: #14 (comment)

from snowman.

yegord avatar yegord commented on July 22, 2024

Related: #51

from snowman.

nihilus avatar nihilus commented on July 22, 2024

Moreover #59 is an actual way to achieve this.

from snowman.

yegord avatar yegord commented on July 22, 2024

No, it's not.

from snowman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.