From d646b00ceb48a043a61b2ab2dd671a074c9d1762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Thu, 12 Nov 2026 16:25:24 +0100 Subject: [PATCH] Fix for --time-limit producing empty --har file --- lib/core/settings.py | 2 +- sqlmap.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 62352e48a..5737e0e34 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.11.49" +VERSION = "1.10.11.50" 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) diff --git a/sqlmap.py b/sqlmap.py index feacbc82c..98446f6dc 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -648,6 +648,9 @@ def main(): except OSError: pass + # Note: --time-limit must not interrupt the final cleanup (e.g. session flush or HAR file writing) + conf.timeLimit = None + if conf.get("hashDB"): conf.hashDB.flush() conf.hashDB.close() # NOTE: because of PyPy