File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty import six
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.5.56 "
21+ VERSION = "1.3.5.57 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments