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

Function version

lib/utils/api.py:675–681  ·  view source on GitHub ↗

Fetch server version

(token=None)

Source from the content-addressed store, hash-verified

673
674@get("/version")
675def version(token=None):
676 """
677 Fetch server version
678 """
679
680 logger.debug("Fetched version (%s)" % ("admin" if is_admin(token) else request.remote_addr))
681 return jsonize({"success": True, "version": VERSION_STRING.split('/')[-1]})
682
683def server(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT, adapter=RESTAPI_DEFAULT_ADAPTER, username=None, password=None, database=None):
684 """

Callers

nothing calls this directly

Calls 3

jsonizeFunction · 0.90
is_adminFunction · 0.85
debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…