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

Function priorityFunction

lib/core/common.py:3754–3766  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

3752 retVal = copy.deepcopy(conf.tests)
3753
3754 def priorityFunction(test):
3755 retVal = SORT_ORDER.FIRST
3756
3757 if test.stype == PAYLOAD.TECHNIQUE.UNION:
3758 retVal = SORT_ORDER.LAST
3759
3760 elif "details" in test and "dbms" in (test.details or {}):
3761 if intersect(test.details.dbms, Backend.getIdentifiedDbms()):
3762 retVal = SORT_ORDER.SECOND
3763 else:
3764 retVal = SORT_ORDER.THIRD
3765
3766 return retVal
3767
3768 if Backend.getIdentifiedDbms():
3769 retVal = sorted(retVal, key=priorityFunction)

Callers

nothing calls this directly

Calls 2

intersectFunction · 0.85
getIdentifiedDbmsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…