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: