Skip to content

Commit 06a6084

Browse files
committed
pe: update comments for force_integrity
1 parent aaae257 commit 06a6084

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Check `--help` for more options (_JSON output_, _recursive walk_, _workers count
154154
| Output JSON |||
155155
| PE: ASLR - DYNAMIC_BASE |||
156156
| PE: ASLR - HIGHENTROPYVA |||
157-
| PE: INTEGRITYCHECK | ||
157+
| PE: INTEGRITYCHECK | ||
158158
| PE: Authenticode signed |||
159159
| PE: DEP |||
160160
| PE: Manifest Isolation |||

checksec/pe.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def is_authenticode_valid(self) -> bool:
9797
@property
9898
def has_force_integrity(self) -> bool:
9999
"""Whether FORCE_INTEGRITY is enabled"""
100-
# 2011 ?
100+
# /INTEGRITYCHECK
101101
return self.bin.optional_header.has(DLL_CHARACTERISTICS.FORCE_INTEGRITY)
102102

103103
@property
@@ -108,8 +108,6 @@ def has_guard_cf(self) -> bool:
108108
# https://github.com/trailofbits/winchecksec/blob/v2.0.0/checksec.cpp#L238
109109
return self.is_aslr and self.bin.optional_header.has(DLL_CHARACTERISTICS.GUARD_CF)
110110

111-
# code integrity: November 2015 (Windows 10 1511)
112-
113111
# Return Flow Guard: October 2016 (Windows 10 Redstone 2)
114112

115113
@property

0 commit comments

Comments
 (0)