mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor bug fix to --tamper
This commit is contained in:
parent
2129935e06
commit
a2997a6dce
3 changed files with 4 additions and 5 deletions
|
|
@ -33,7 +33,7 @@ def tamper(place, value):
|
|||
newWord = str()
|
||||
|
||||
for i in xrange(len(word)):
|
||||
newWord += word[i].upper() if randomRange(0,1) else word[i].lower()
|
||||
newWord += word[i].upper() if randomRange(0, 1) else word[i].lower()
|
||||
|
||||
retVal = retVal.replace(word, newWord)
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ def tamper(place, value):
|
|||
newWord = word[0]
|
||||
|
||||
for i in xrange(1, len(word) - 1):
|
||||
newWord += "%s%s" % ("/**/" if randomRange(0,1) else "", word[i])
|
||||
newWord += "%s%s" % ("/**/" if randomRange(0, 1) else "", word[i])
|
||||
|
||||
newWord += word[-1]
|
||||
retVal = retVal.replace(word, newWord)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue