Skip to content

Commit

Permalink
comply with the changes in angrop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Kyle committed Jan 31, 2024
1 parent 6943bd7 commit 5ee1b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rex/crash.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def initialize_rop(self):
return

# finally, create an angrop object
rop = self.project.analyses.ROP(fast_mode=self._rop_fast_mode, rebase=False)
rop = self.project.analyses.ROP(fast_mode=self._rop_fast_mode)
rop.set_badbytes(self._bad_bytes)
if self._rop_cache and self._rop_cache[0]:
l.info("Loading rop gadgets from cache")
Expand Down Expand Up @@ -107,7 +107,7 @@ def initialize_libc_rop(self):
# finally, create an angrop object
bin_opts = {"base_addr": base_addr}
project = angr.Project(self.libc_binary, auto_load_libs=False, main_opts=bin_opts)
libc_rop = project.analyses.ROP(fast_mode=self._rop_fast_mode, rebase=False)
libc_rop = project.analyses.ROP(fast_mode=self._rop_fast_mode)
libc_rop.set_badbytes(self._bad_bytes)
if self._rop_cache and self._rop_cache[1]:
l.info("Loading libc rop gadgets from cache")
Expand Down
2 changes: 1 addition & 1 deletion rex/exploit/techniques/rop_leak_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def apply(self, **kwargs):
address_var = claripy.BVS('address_var', self.crash.project.arch.bits, explicit_name=True)
length_var = claripy.BVS('length_var', self.crash.project.arch.bits, explicit_name=True)
chain = self.rop.do_syscall(2, [1, address_var, length_var, 0x0],
ignore_registers=rop_uncontrolled)
preserve_regs=rop_uncontrolled)

chain, chain_addr = self._ip_overwrite_with_chain(chain)

Expand Down

0 comments on commit 5ee1b67

Please sign in to comment.