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

Function _setTechnique

lib/core/option.py:694–713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692 Backend.setOs(conf.os)
693
694def _setTechnique():
695 validTechniques = sorted(getPublicTypeMembers(PAYLOAD.TECHNIQUE), key=lambda x: x[1])
696 validLetters = [_[0][0].upper() for _ in validTechniques]
697
698 if conf.technique and isinstance(conf.technique, six.string_types):
699 _ = []
700
701 for letter in conf.technique.upper():
702 if letter not in validLetters:
703 errMsg = "value for --technique must be a string composed "
704 errMsg += "by the letters %s. Refer to the " % ", ".join(validLetters)
705 errMsg += "user's manual for details"
706 raise SqlmapSyntaxException(errMsg)
707
708 for validTech, validInt in validTechniques:
709 if letter == validTech[0]:
710 _.append(validInt)
711 break
712
713 conf.technique = _
714
715def _setDBMS():
716 """

Callers 1

initFunction · 0.85

Calls 3

getPublicTypeMembersFunction · 0.90
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…