Fix for --time-limit producing empty --har file

This commit is contained in:
Miroslav Štampar committed 2026-11-12 16:25:24 +01:00
1 parent ca698bb7ec
commit d646b00ceb
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
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)
+3
View File
@@ -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