Minor update for sqlmap API task_delete

This commit is contained in:
Miroslav Štampar 2026-06-05 12:28:55 +02:00
parent 69efd623c9
commit 7dc414b06b
3 changed files with 4 additions and 3 deletions

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.6.38"
VERSION = "1.10.6.39"
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)

View file

@ -392,6 +392,7 @@ def task_delete(taskid):
Delete an existing task
"""
if taskid in DataStore.tasks:
DataStore.tasks[taskid].engine_kill()
DataStore.tasks.pop(taskid)
logger.debug("(%s) Deleted task" % taskid)