Minor patches

This commit is contained in:
Miroslav Stampar
2025-11-06 11:41:35 +01:00
parent 0599f7c1b6
commit 77a42b3a6f
5 changed files with 11 additions and 11 deletions

View File

@@ -110,7 +110,7 @@ def update():
filepath = os.path.join(paths.SQLMAP_ROOT_PATH, "lib", "core", "settings.py")
if os.path.isfile(filepath):
with openFile(filepath, "rb") as f:
with openFile(filepath, "r") as f:
version = re.search(r"(?m)^VERSION\s*=\s*['\"]([^'\"]+)", f.read()).group(1)
logger.info("updated to the latest version '%s#dev'" % version)
success = True