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

Skip to content

Commit d1f50a3

Browse files
committed
Fixes #3634
1 parent 2693da6 commit d1f50a3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty import six
1919

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

tamper/randomcase.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ def tamper(payload, **kwargs):
3737
>>> random.seed(0)
3838
>>> tamper('INSERT')
3939
'InSeRt'
40+
>>> tamper('f()')
41+
'f()'
42+
>>> tamper('function()')
43+
'FuNcTiOn()'
4044
"""
4145

4246
retVal = payload
4347

4448
if payload:
45-
for match in re.finditer(r"\b[A-Za-z_]+\b", retVal):
49+
for match in re.finditer(r"\b[A-Za-z_]{2,}\b", retVal):
4650
word = match.group()
4751

4852
if word.upper() in kb.keywords or ("%s(" % word) in payload:

0 commit comments

Comments
 (0)