minor update

This commit is contained in:
Miroslav Stampar 2011-10-25 14:03:11 +00:00
parent 38e2d0896b
commit 24d495368e

View File

@ -7,6 +7,7 @@ Copyright (c) 2006-2011 sqlmap developers (http://www.sqlmap.org/)
See the file 'doc/COPYING' for copying permission See the file 'doc/COPYING' for copying permission
""" """
from lib.core.common import randomInt
from lib.core.enums import PRIORITY from lib.core.enums import PRIORITY
__priority__ = PRIORITY.HIGHER __priority__ = PRIORITY.HIGHER
@ -42,6 +43,6 @@ def tamper(payload):
payload = payload[:payload.find(comment)] payload = payload[:payload.find(comment)]
break break
if ' ' in payload: if ' ' in payload:
retVal = "%s /*!30000%s*/%s" % (payload[:payload.find(' ')], payload[payload.find(' ') + 1:], postfix) retVal = "%s /*!30%s%s*/%s" % (payload[:payload.find(' ')], randomInt(3), payload[payload.find(' ') + 1:], postfix)
return retVal return retVal