minor fixes

This commit is contained in:
Miroslav Stampar
2012-05-09 14:58:16 +00:00
parent 9fa3619262
commit b0a8238774
2 changed files with 3 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ def __unionPosition(comment, place, parameter, prefix, suffix, count, where=PAYL
unionErrorCase = kb.errorIsNone and wasLastRequestDBMSError()
if unionErrorCase:
if unionErrorCase and count > 1:
warnMsg = "combined UNION/error-based SQL injection case found on "
warnMsg += "column %d. sqlmap will try to find another " % (position + 1)
warnMsg += "column with better characteristics"
@@ -273,7 +273,7 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
warnMsg += "forcing the "
warnMsg += "back-end DBMS (e.g. --dbms=mysql) "
if not all([validPayload, vector]):
if not all([validPayload, vector]) and not warnMsg.endswith("consider "):
singleTimeWarnMessage(warnMsg)
return validPayload, vector