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

Function scan_stop

lib/utils/api.py:528–540  ·  view source on GitHub ↗

Stop a scan

(taskid)

Source from the content-addressed store, hash-verified

526
527@get("/scan/<taskid>/stop")
528def scan_stop(taskid):
529 """
530 Stop a scan
531 """
532
533 if (taskid not in DataStore.tasks or DataStore.tasks[taskid].engine_process() is None or DataStore.tasks[taskid].engine_has_terminated()):
534 logger.warning("[%s] Invalid task ID provided to scan_stop()" % taskid)
535 return jsonize({"success": False, "message": "Invalid task ID"})
536
537 DataStore.tasks[taskid].engine_stop()
538
539 logger.debug("(%s) Stopped scan" % taskid)
540 return jsonize({"success": True})
541
542@get("/scan/<taskid>/kill")
543def scan_kill(taskid):

Callers

nothing calls this directly

Calls 5

jsonizeFunction · 0.90
engine_processMethod · 0.80
engine_has_terminatedMethod · 0.80
engine_stopMethod · 0.80
debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…