mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor refactoring
This commit is contained in:
parent
b820975217
commit
7f4fa7c27d
11 changed files with 23 additions and 23 deletions
|
|
@ -43,11 +43,11 @@ def tamper(payload):
|
|||
word = match.group()
|
||||
|
||||
if word.upper() in kb.keywords:
|
||||
newWord = str()
|
||||
_ = str()
|
||||
|
||||
for i in xrange(len(word)):
|
||||
newWord += word[i].upper() if randomRange(0, 1) else word[i].lower()
|
||||
_ += word[i].upper() if randomRange(0, 1) else word[i].lower()
|
||||
|
||||
retVal = retVal.replace(word, newWord)
|
||||
retVal = retVal.replace(word, _)
|
||||
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue