Coder Social home page Coder Social logo

Ref function support about nampa HOT 1 OPEN

sraboy avatar sraboy commented on May 23, 2024
Ref function support

from nampa.

Comments (1)

thebabush avatar thebabush commented on May 23, 2024

Thanks, I'll take a look in the next days if I have a chance.

But from my understanding of refs I think that it shouldn't be too difficult to implement some angr/binja-independent code to handle them. I would just throw a first_pass flag or something so that match_module knows it has to ignore functions matching signatures with refs + some way to give the analysis a list of the functions referenced by the function being analysed.

Yes, the binja plugin would have to keep a list of the functions needing a second pass and then apply the second pass, which is identical to the first pass but has the additional check for referenced functions.
Instead of returning a dumb True/False flag I should once again do TheRightThing(tm) and create an enum or something like MATCH/NO_MATCH/MATCH_WITH_REFS.

Throw in another platform-dependent callback like get_refs and it should be done.
Maybe a small platform-dependent abstraction class would be better for readability but whatever.

My code is not really much python aside from using some functional-style stuff (which isn't pythonic anyway) haha. Thanks for the test files, I will need them ;)

from nampa.

Related Issues (5)

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.