angrgdb icon indicating copy to clipboard operation
angrgdb copied to clipboard

No way of accessing angr core module to add constraints or define files.

Open N0fix opened this issue 4 years ago • 4 comments

There is no easy way to use angr core module to add constraints to symbolic memory or even add a symbolic file to the state's filesystem.

N0fix avatar Sep 30 '20 23:09 N0fix

Why not?

state = StateShot()
symfile.set_state(state)
state.memory.store(address, symbolic_item)

andreafioraldi avatar Oct 01 '20 15:10 andreafioraldi

How do you define your Symfile, and why do you map a symbolic file in memory without using angr's filesystem API?

N0fix avatar Oct 01 '20 17:10 N0fix

state.fs to access the filesystem plugin. I donàt get the point, StateShot returns an angr state and so you can just use the angr api (as said, state.fs is the plugin) and StateManager returns a wrapper, in which you can access the angr state using statemanager.state.

andreafioraldi avatar Oct 01 '20 18:10 andreafioraldi

If you read the angrdbg readme is easy. If you need more features for reason X, feel free to submit a PR.

andreafioraldi avatar Oct 01 '20 18:10 andreafioraldi