MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / scan_kill

Function scan_kill

lib/utils/api.py:543–555  ·  view source on GitHub ↗

Kill a scan

(taskid)

Source from the content-addressed store, hash-verified

541
542@get("/scan/<taskid>/kill")
543def scan_kill(taskid):
544 """
545 Kill a scan
546 """
547
548 if (taskid not in DataStore.tasks or DataStore.tasks[taskid].engine_process() is None or DataStore.tasks[taskid].engine_has_terminated()):
549 logger.warning("[%s] Invalid task ID provided to scan_kill()" % taskid)
550 return jsonize({"success": False, "message": "Invalid task ID"})
551
552 DataStore.tasks[taskid].engine_kill()
553
554 logger.debug("(%s) Killed scan" % taskid)
555 return jsonize({"success": True})
556
557@get("/scan/<taskid>/status")
558def scan_status(taskid):

Callers

nothing calls this directly

Calls 5

jsonizeFunction · 0.90
engine_processMethod · 0.80
engine_has_terminatedMethod · 0.80
engine_killMethod · 0.80
debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…