Lists available tamper functions
()
| 744 | break |
| 745 | |
| 746 | def _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 | |
| 762 | def _setTamperingFunctions(): |
| 763 | """ |