From f3013e4a29e7131383ab884f999c16b9cecc277c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 30 Jun 2011 06:39:32 +0000 Subject: [PATCH] minor update --- tamper/versionedkeywords.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tamper/versionedkeywords.py b/tamper/versionedkeywords.py index fe80149a8..4b7b52c51 100644 --- a/tamper/versionedkeywords.py +++ b/tamper/versionedkeywords.py @@ -10,6 +10,7 @@ See the file 'doc/COPYING' for copying permission import re from lib.core.common import randomRange +from lib.core.common import singleTimeWarnMessage from lib.core.data import kb from lib.core.enums import PRIORITY from lib.core.settings import IGNORE_SPACE_AFFECTED_KEYWORDS @@ -18,7 +19,7 @@ __priority__ = PRIORITY.NORMAL def tamper(payload): """ - Encloses each keyword with versioned MySQL comment + Encloses each keyword with versioned MySQL comment (MySQL >= 5.1.13) Example: 'INSERT' will become '/*!INSERT*/' """ @@ -29,6 +30,8 @@ def tamper(payload): else: return match.group() + singleTimeWarnMessage("This tamper script is only meant to be run against MySQL >= 5.1.13") + retVal = payload if payload: