Adding one new smart ass warning message

This commit is contained in:
Miroslav Stampar 2014-12-19 15:48:54 +01:00
parent 1ea2f5bfe2
commit 6cb76bcf85

View File

@ -986,6 +986,11 @@ def _setTamperingFunctions():
errMsg += "in tamper script '%s'" % tfile errMsg += "in tamper script '%s'" % tfile
raise SqlmapGenericException(errMsg) raise SqlmapGenericException(errMsg)
if kb.tamperFunctions and len(kb.tamperFunctions) > 3:
warnMsg = "using too many tamper scripts is usually not "
warnMsg += "a good idea"
logger.warning(warnMsg)
if resolve_priorities and priorities: if resolve_priorities and priorities:
priorities.sort(reverse=True) priorities.sort(reverse=True)
kb.tamperFunctions = [] kb.tamperFunctions = []