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

Function task_flush

lib/utils/api.py:424–435  ·  view source on GitHub ↗

Flush task spool (delete all tasks)

(token=None)

Source from the content-addressed store, hash-verified

422@get("/admin/flush")
423@get("/admin/<token>/flush")
424def task_flush(token=None):
425 """
426 Flush task spool (delete all tasks)
427 """
428
429 for key in list(DataStore.tasks):
430 if is_admin(token) or DataStore.tasks[key].remote_addr == request.remote_addr:
431 DataStore.tasks[key].engine_kill()
432 del DataStore.tasks[key]
433
434 logger.debug("(%s) Flushed task pool (%s)" % (token, "admin" if is_admin(token) else request.remote_addr))
435 return jsonize({"success": True})
436
437##################################
438# sqlmap core interact functions #

Callers

nothing calls this directly

Calls 4

jsonizeFunction · 0.90
is_adminFunction · 0.85
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…