Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24d4953

Browse files
committed
minor update
1 parent 38e2d08 commit 24d4953

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tamper/modsecurityversioned.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
See the file 'doc/COPYING' for copying permission
88
"""
99

10+
from lib.core.common import randomInt
1011
from lib.core.enums import PRIORITY
1112

1213
__priority__ = PRIORITY.HIGHER
@@ -42,6 +43,6 @@ def tamper(payload):
4243
payload = payload[:payload.find(comment)]
4344
break
4445
if ' ' in payload:
45-
retVal = "%s /*!30000%s*/%s" % (payload[:payload.find(' ')], payload[payload.find(' ') + 1:], postfix)
46+
retVal = "%s /*!30%s%s*/%s" % (payload[:payload.find(' ')], randomInt(3), payload[payload.find(' ') + 1:], postfix)
4647

4748
return retVal

0 commit comments

Comments
 (0)