diff --git a/lib/core/settings.py b/lib/core/settings.py index f801642f5..ff0b863eb 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.56" +VERSION = "1.3.5.57" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/tamper/randomcase.py b/tamper/randomcase.py index 923e2a6b2..b25078493 100644 --- a/tamper/randomcase.py +++ b/tamper/randomcase.py @@ -37,12 +37,16 @@ def tamper(payload, **kwargs): >>> random.seed(0) >>> tamper('INSERT') 'InSeRt' + >>> tamper('f()') + 'f()' + >>> tamper('function()') + 'FuNcTiOn()' """ retVal = payload if payload: - for match in re.finditer(r"\b[A-Za-z_]+\b", retVal): + for match in re.finditer(r"\b[A-Za-z_]{2,}\b", retVal): word = match.group() if word.upper() in kb.keywords or ("%s(" % word) in payload: