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

Function getCounter

lib/core/common.py:4927–4935  ·  view source on GitHub ↗

Returns query counter for a given technique >>> resetCounter(PAYLOAD.TECHNIQUE.STACKED); incrementCounter(PAYLOAD.TECHNIQUE.STACKED); getCounter(PAYLOAD.TECHNIQUE.STACKED) 1

(technique)

Source from the content-addressed store, hash-verified

4925 kb.counters[technique] = getCounter(technique) + 1
4926
4927def getCounter(technique):
4928 """
4929 Returns query counter for a given technique
4930
4931 >>> resetCounter(PAYLOAD.TECHNIQUE.STACKED); incrementCounter(PAYLOAD.TECHNIQUE.STACKED); getCounter(PAYLOAD.TECHNIQUE.STACKED)
4932 1
4933 """
4934
4935 return kb.counters.get(technique, 0)
4936
4937def applyFunctionRecursively(value, function):
4938 """

Callers 2

bisectionFunction · 0.90
incrementCounterFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…