mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-14 02:02:30 +03:00
get admin_token for admin api
This commit is contained in:
parent
88bef72cf8
commit
a558ea6b04
|
@ -404,6 +404,13 @@ def task_delete(taskid):
|
||||||
# Admin functions #
|
# Admin functions #
|
||||||
###################
|
###################
|
||||||
|
|
||||||
|
@get("/admin/token")
|
||||||
|
def get_token():
|
||||||
|
"""
|
||||||
|
get admin_token for admin api
|
||||||
|
"""
|
||||||
|
return jsonize({"success": True, "token": DataStore.admin_token})
|
||||||
|
|
||||||
@get("/admin/list")
|
@get("/admin/list")
|
||||||
@get("/admin/<token>/list")
|
@get("/admin/<token>/list")
|
||||||
def task_list(token=None):
|
def task_list(token=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user