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

Function _listTamperingFunctions

lib/core/option.py:746–760  ·  view source on GitHub ↗

Lists available tamper functions

()

Source from the content-addressed store, hash-verified

744 break
745
746def _listTamperingFunctions():
747 """
748 Lists available tamper functions
749 """
750
751 if conf.listTampers:
752 infoMsg = "listing available tamper scripts\n"
753 logger.info(infoMsg)
754
755 for script in sorted(glob.glob(os.path.join(paths.SQLMAP_TAMPER_PATH, "*.py"))):
756 content = openFile(script, "rb").read()
757 match = re.search(r'(?s)__priority__.+"""(.+)"""', content)
758 if match:
759 comment = match.group(1).strip()
760 dataToStdout("* %s - %s\n" % (setColor(os.path.basename(script), "yellow"), re.sub(r" *\n *", " ", comment.split("\n\n")[0].strip())))
761
762def _setTamperingFunctions():
763 """

Callers 1

initFunction · 0.85

Calls 6

openFileFunction · 0.90
dataToStdoutFunction · 0.90
setColorFunction · 0.90
infoMethod · 0.80
readMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…