From cdaea325f90b406b515d1979a9c860adad7008d6 Mon Sep 17 00:00:00 2001 From: Kevin Phoenix Date: Wed, 16 Oct 2024 14:57:23 -0700 Subject: [PATCH] Use page.permission_bits over page.permissions --- rex/exploit/techniques/explore_for_exploit.py | 2 +- rex/exploit/techniques/rop_leak_memory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rex/exploit/techniques/explore_for_exploit.py b/rex/exploit/techniques/explore_for_exploit.py index f1cda15..7fbb2d1 100644 --- a/rex/exploit/techniques/explore_for_exploit.py +++ b/rex/exploit/techniques/explore_for_exploit.py @@ -195,7 +195,7 @@ def _get_writable_pages(state): curr_start = -1 ranges = [] for page_num, page in sorted(state.memory._pages.items(), key=lambda x:x[0]): - if not state.solver.eval(page.permissions) & 0x2: + if not state.solver.eval(page.permission_bits) & 0x2: continue page_addr = page_num*0x1000 if page_addr != last_addr: diff --git a/rex/exploit/techniques/rop_leak_memory.py b/rex/exploit/techniques/rop_leak_memory.py index ffd214c..b68f8c8 100644 --- a/rex/exploit/techniques/rop_leak_memory.py +++ b/rex/exploit/techniques/rop_leak_memory.py @@ -28,7 +28,7 @@ def _get_writable_pages(state): curr_start = -1 ranges = [] for page_num, page in sorted(state.memory._pages.items(), key=lambda x:x[0]): - if not state.solver.eval(page.permissions) & 0x2: + if not state.solver.eval(page.permission_bits) & 0x2: continue page_addr = page_num*0x1000 if page_addr != last_addr: