Normalization of CRLF inside checkSums

This commit is contained in:
Miroslav Stampar
2026-01-28 23:58:35 +01:00
parent 60950bc03b
commit 360dc478c0
4 changed files with 13 additions and 11 deletions

View File

@@ -5639,6 +5639,8 @@ def checkSums():
continue
with open(filepath, "rb") as f:
content = f.read()
if b"\r\n" in content and b"sqlmap" in content:
content = content.replace(b"\r\n", b"\n")
if not hashlib.sha256(content).hexdigest() == expected:
retVal &= False
break