Comments (2)
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.
Thank you, this solved the problem!
from angrgdb.
Related Issues (7)
- angrgdb remote debugging HOT 6
- Python syntax for angrgdb HOT 8
- StateShot() and StateManager() cause sigfault with pie executables
- No way of accessing angr core module to add constraints or define files. HOT 4
- angrdbg run: valid state not found after exploration
- ModuleNotFoundError: No module named 'angr.storage.memory'
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 angrgdb.