mirror of
https://github.com/longld/peda.git
synced 2026-10-11 21:49:51 +00:00
Merge pull request #55 from degrigis/relro_report_fix
Fixed the wrong checksec output 'RELRO: Full' when there is BIND_NOW but not GNU_RELRO
This commit is contained in:
@@ -2528,9 +2528,12 @@ class PEDA(object):
|
||||
|
||||
for line in out.splitlines():
|
||||
if "GNU_RELRO" in line:
|
||||
result["RELRO"] = 2 # Partial
|
||||
result["RELRO"] = 2 # Partial | NO BIND_NOW + GNU_RELRO
|
||||
if "BIND_NOW" in line:
|
||||
result["RELRO"] = 3 # Full
|
||||
if result["RELRO"] == 2:
|
||||
result["RELRO"] = 3 # Full | BIND_NOW + GNU_RELRO
|
||||
else:
|
||||
result["RELRO"] = 0 # ? | BIND_NOW + NO GNU_RELRO = NO PROTECTION
|
||||
if "__stack_chk_fail" in line:
|
||||
result["CANARY"] = 1
|
||||
if "GNU_STACK" in line and "RWE" in line:
|
||||
|
||||
Reference in New Issue
Block a user