mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-29 17:49:09 +00:00
Adding some better heuristics into the checkSums
This commit is contained in:
@@ -5639,10 +5639,9 @@ def checkSums():
|
||||
continue
|
||||
with open(filepath, "rb") as f:
|
||||
content = f.read()
|
||||
if b"\r\n" in content and b"sqlmap" in content:
|
||||
if b'\0' not in content:
|
||||
content = content.replace(b"\r\n", b"\n")
|
||||
if not hashlib.sha256(content).hexdigest() == expected:
|
||||
retVal &= False
|
||||
break
|
||||
|
||||
return retVal
|
||||
|
||||
Reference in New Issue
Block a user