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

Function task_new

lib/utils/api.py:376–386  ·  view source on GitHub ↗

Create a new task

()

Source from the content-addressed store, hash-verified

374# Users' methods
375@get("/task/new")
376def task_new():
377 """
378 Create a new task
379 """
380 taskid = encodeHex(os.urandom(8), binary=False)
381 remote_addr = request.remote_addr
382
383 DataStore.tasks[taskid] = Task(taskid, remote_addr)
384
385 logger.debug("Created new task: '%s'" % taskid)
386 return jsonize({"success": True, "taskid": taskid})
387
388@get("/task/<taskid>/delete")
389def task_delete(taskid):

Callers

nothing calls this directly

Calls 4

encodeHexFunction · 0.90
jsonizeFunction · 0.90
TaskClass · 0.85
debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…