Giter Site home page Giter Site logo

Comments (2)

andreafioraldi avatar andreafioraldi commented on May 7, 2024

The writeup is mine lol.

Thanks for the issue but this is not the correct way of using get_variables. A variable must be submitted to the tracker before using get:variables, see here.

You can get all variables created with a StateManager (that is only a wrapper) you can use the sm.symbolics dictionary. The key are registers names of addresses, in your case the key is the value of rbx (0x7fffffffda30). The returned value is a tuple (bitvector, size) (yes size is redundant and i don't remember why).

In addition, angrgdb sim $rbx, 15 is not a correct command, use angrgdb sim $rbx 15 instead.

My suggestion is to not use the GDB commands when you want to use the shell, simply type angrdbg shell and add find/avoid addresses and symbolic values directly in python:

key = sm.sim(sm["rbx"], 15) # key is solver.eval(sm["rbx"], cast_to=int)
sm[key] # get the variable in the right way
sm.symbolics[key][0] # dirty way
m.explore(find= 0x800145c, avoid= 0x800145a)
...
sm.to_dbg(m.found[0]) # write results back to gdb

from angrgdb.

sudo45 avatar sudo45 commented on May 7, 2024

Thank you, this solved the problem!

from angrgdb.

Related Issues (7)

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.