Skip to content

Commit a0a6702

Browse files
committed
Minor patch (reported via ML)
1 parent b18444f commit a0a6702

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

lib/core/common.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3638,13 +3638,31 @@ def randomizeParameterValue(value):
36383638
value = re.sub(r"%[0-9a-fA-F]{2}", "", value)
36393639

36403640
for match in re.finditer('[A-Z]+', value):
3641-
retVal = retVal.replace(match.group(), randomStr(len(match.group())).upper())
3641+
while True:
3642+
original = match.group()
3643+
candidate = randomStr(len(match.group())).upper()
3644+
if original != candidate:
3645+
break
3646+
3647+
retVal = retVal.replace(original, candidate)
36423648

36433649
for match in re.finditer('[a-z]+', value):
3644-
retVal = retVal.replace(match.group(), randomStr(len(match.group())).lower())
3650+
while True:
3651+
original = match.group()
3652+
candidate = randomStr(len(match.group())).lower()
3653+
if original != candidate:
3654+
break
3655+
3656+
retVal = retVal.replace(original, candidate)
36453657

36463658
for match in re.finditer('[0-9]+', value):
3647-
retVal = retVal.replace(match.group(), str(randomInt(len(match.group()))))
3659+
while True:
3660+
original = match.group()
3661+
candidate = str(randomInt(len(match.group())))
3662+
if original != candidate:
3663+
break
3664+
3665+
retVal = retVal.replace(original, candidate)
36483666

36493667
return retVal
36503668

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.2.19"
22+
VERSION = "1.1.2.20"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dc386321e8813788f155dc557a78be8d lib/controller/controller.py
2626
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
2727
19905ecb4437b94512cf21d5f1720091 lib/core/agent.py
2828
6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py
29-
664f91efb9a489c2607ff07cce2923bc lib/core/common.py
29+
7a8ce69bba0dc1fda2cd3bba3cbad092 lib/core/common.py
3030
5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py
3131
a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
3232
7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py
@@ -45,7 +45,7 @@ a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
4545
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4646
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4747
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
48-
9587df401ae249ce8e0236d40276aaf6 lib/core/settings.py
48+
9a2f86dad727c06f86ce0fb26cc65385 lib/core/settings.py
4949
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5050
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151
afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py

0 commit comments

Comments
 (0)