Skip to content

Commit

Permalink
Improve identifying Stack Canaries (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaoticdude committed Apr 9, 2022
1 parent d540abd commit e50af77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Expand Up @@ -2045,7 +2045,7 @@ def __check_security_property(opt: str, filename: str, pattern: str) -> bool:
return False

results = collections.OrderedDict()
results["Canary"] = __check_security_property("-s", filename, r"__stack_chk_fail") is True
results["Canary"] = __check_security_property("-rs", filename, r"__stack_chk_fail") is True
has_gnu_stack = __check_security_property("-W -l", filename, r"GNU_STACK") is True
if has_gnu_stack:
results["NX"] = __check_security_property("-W -l", filename, r"GNU_STACK.*RWE") is False
Expand Down

0 comments on commit e50af77

Please sign in to comment.