We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69068b0 + 89a87fc commit ea035c3Copy full SHA for ea035c3
peda.py
@@ -2528,9 +2528,12 @@ def checksec(self, filename=None):
2528
2529
for line in out.splitlines():
2530
if "GNU_RELRO" in line:
2531
- result["RELRO"] = 2 # Partial
+ result["RELRO"] = 2 # Partial | NO BIND_NOW + GNU_RELRO
2532
if "BIND_NOW" in line:
2533
- result["RELRO"] = 3 # Full
+ if result["RELRO"] == 2:
2534
+ result["RELRO"] = 3 # Full | BIND_NOW + GNU_RELRO
2535
+ else:
2536
+ result["RELRO"] = 0 # ? | BIND_NOW + NO GNU_RELRO = NO PROTECTION
2537
if "__stack_chk_fail" in line:
2538
result["CANARY"] = 1
2539
if "GNU_STACK" in line and "RWE" in line:
0 commit comments