Minor patch

This commit is contained in:
Miroslav Stampar
2024-03-01 12:15:53 +01:00
parent 1f41f8588b
commit d2e3eaceaf
3 changed files with 6 additions and 4 deletions

View File

@@ -5569,6 +5569,8 @@ def chunkSplitPostData(data):
def checkSums():
"""
Validate the content of the digest file (i.e. sha256sums.txt)
>>> checkSums()
True
"""
retVal = True
@@ -5578,7 +5580,7 @@ def checkSums():
match = re.search(r"([0-9a-f]+)\s+([^\s]+)", entry)
if match:
expected, filename = match.groups()
filepath = os.path.join(paths.SQLMAP_ROOT_PATH, filename)
filepath = os.path.join(paths.SQLMAP_ROOT_PATH, filename).replace('/', os.path.sep)
checkFile(filepath)
if not hashlib.sha256(open(filepath, "rb").read()).hexdigest() == expected:
retVal &= False

View File

@@ -20,7 +20,7 @@ from thirdparty import six
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.8.3.4"
VERSION = "1.8.3.5"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)