Skip to content

Commit

Permalink
comply the changes in ROPValue change in angrop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Kyle committed Jan 30, 2024
1 parent 3658278 commit d029ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rex/exploit/technique.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def _ip_overwrite_with_chain(self, chain, state=None, assert_next_ip_controlled=
# if we can directly pivot to the symbolic region, do it
# the assumption is the first value in the chain is a code address
# it sounds like a reasonable assumption to me. But I can be wrong.
chain_constraints = [state.regs.sp == addr, state.regs.pc == chain._values[0][0]]
chain_constraints = [state.regs.sp == addr, state.regs.pc == chain._values[0].data]
if state.solver.satisfiable(extra_constraints=chain_constraints):
chain_addr = addr
chain_cp = chain.copy()
Expand Down

0 comments on commit d029ee6

Please sign in to comment.