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

Function task_list

lib/utils/api.py:409–420  ·  view source on GitHub ↗

Pull task list

(token=None)

Source from the content-addressed store, hash-verified

407@get("/admin/list")
408@get("/admin/<token>/list")
409def task_list(token=None):
410 """
411 Pull task list
412 """
413 tasks = {}
414
415 for key in DataStore.tasks:
416 if is_admin(token) or DataStore.tasks[key].remote_addr == request.remote_addr:
417 tasks[key] = dejsonize(scan_status(key))["status"]
418
419 logger.debug("(%s) Listed task pool (%s)" % (token, "admin" if is_admin(token) else request.remote_addr))
420 return jsonize({"success": True, "tasks": tasks, "tasks_num": len(tasks)})
421
422@get("/admin/flush")
423@get("/admin/<token>/flush")

Callers

nothing calls this directly

Calls 5

dejsonizeFunction · 0.90
jsonizeFunction · 0.90
is_adminFunction · 0.85
scan_statusFunction · 0.85
debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…