mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-24 10:33:47 +03:00
Silent bug fix
This commit is contained in:
parent
c243c5fe0d
commit
4d2b890a0a
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.4.11.4"
|
VERSION = "1.4.11.5"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
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)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -29,4 +29,4 @@ def tamper(payload, **kwargs):
|
||||||
'1e0UNION ALL SELECT'
|
'1e0UNION ALL SELECT'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return re.sub(r"(\d+)\s+(UNION )", r"\g<1>e0\g<2>", payload, re.I) if payload else payload
|
return re.sub(r"(?i)(\d+)\s+(UNION )", r"\g<1>e0\g<2>", payload) if payload else payload
|
||||||
|
|
|
@ -31,4 +31,4 @@ def tamper(payload, **kwargs):
|
||||||
'1DUNION ALL SELECT'
|
'1DUNION ALL SELECT'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return re.sub(r"(\d+)\s+(UNION )", r"\g<1>D\g<2>", payload, re.I) if payload else payload
|
return re.sub(r"(?i)(\d+)\s+(UNION )", r"\g<1>D\g<2>", payload) if payload else payload
|
||||||
|
|
|
@ -33,4 +33,4 @@ def tamper(payload, **kwargs):
|
||||||
'1"-.1UNION ALL SELECT'
|
'1"-.1UNION ALL SELECT'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return re.sub(r"\s+(UNION )", r"-.1\g<1>", payload, re.I) if payload else payload
|
return re.sub(r"(?i)\s+(UNION )", r"-.1\g<1>", payload) if payload else payload
|
||||||
|
|
|
@ -28,4 +28,4 @@ def tamper(payload, **kwargs):
|
||||||
'SELECT id FROM testdb 9.e.users'
|
'SELECT id FROM testdb 9.e.users'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return re.sub(r"( FROM \w+)\.(\w+)", r"\g<1> 9.e.\g<2>", payload, re.I) if payload else payload
|
return re.sub(r"(?i)( FROM \w+)\.(\w+)", r"\g<1> 9.e.\g<2>", payload) if payload else payload
|
||||||
|
|
Loading…
Reference in New Issue
Block a user