mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Proper patch related to the dde1178100
This commit is contained in:
parent
b9efdb2999
commit
8d19c3bd46
|
@ -2909,7 +2909,7 @@ def isDBMSVersionAtLeast(version):
|
||||||
elif value.startswith(">"):
|
elif value.startswith(">"):
|
||||||
value = float(value.replace("<", "")) - 0.01
|
value = float(value.replace("<", "")) - 0.01
|
||||||
|
|
||||||
retVal = distutils.version.LooseVersion(getUnicode(value)) < distutils.version.LooseVersion(getUnicode(version))
|
retVal = distutils.version.LooseVersion(getUnicode(value)) >= distutils.version.LooseVersion(getUnicode(version))
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
|
||||||
from lib.core.enums import OS
|
from lib.core.enums import OS
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.1.12.9"
|
VERSION = "1.1.12.10"
|
||||||
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)
|
||||||
|
|
|
@ -18,6 +18,9 @@ class Syntax(GenericSyntax):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def escape(expression, quote=True):
|
def escape(expression, quote=True):
|
||||||
"""
|
"""
|
||||||
|
>>> from lib.core.common import Backend
|
||||||
|
>>> Backend.setVersion('12.10')
|
||||||
|
['12.10']
|
||||||
>>> Syntax.escape("SELECT 'abcdefgh' FROM foobar")
|
>>> Syntax.escape("SELECT 'abcdefgh' FROM foobar")
|
||||||
'SELECT CHR(97)||CHR(98)||CHR(99)||CHR(100)||CHR(101)||CHR(102)||CHR(103)||CHR(104) FROM foobar'
|
'SELECT CHR(97)||CHR(98)||CHR(99)||CHR(100)||CHR(101)||CHR(102)||CHR(103)||CHR(104) FROM foobar'
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -27,7 +27,7 @@ d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
|
||||||
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
|
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
|
||||||
f8a7165253874a9ce0c6e0d089e5fb8c lib/core/agent.py
|
f8a7165253874a9ce0c6e0d089e5fb8c lib/core/agent.py
|
||||||
8d9d771f7e67582c56a96a8d0ccbe4fc lib/core/bigarray.py
|
8d9d771f7e67582c56a96a8d0ccbe4fc lib/core/bigarray.py
|
||||||
e623cc771c75bcf6afdf4e54d935114e lib/core/common.py
|
d359917cd034d4d353cfd699bd201693 lib/core/common.py
|
||||||
54326d3a690f8b26fe5a5da1a589b369 lib/core/convert.py
|
54326d3a690f8b26fe5a5da1a589b369 lib/core/convert.py
|
||||||
90b1b08368ac8a859300e6fa6a8c796e lib/core/data.py
|
90b1b08368ac8a859300e6fa6a8c796e lib/core/data.py
|
||||||
1c14bdbf47b8dba31f73da9ad731a54a lib/core/datatype.py
|
1c14bdbf47b8dba31f73da9ad731a54a lib/core/datatype.py
|
||||||
|
@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
|
||||||
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
|
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
|
||||||
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
|
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
|
||||||
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
|
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
|
||||||
86d38da543158487a610bce01a5577a1 lib/core/settings.py
|
801dcf41cef89852f754a6d7ecdc8955 lib/core/settings.py
|
||||||
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
|
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
|
||||||
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
|
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
|
||||||
d93501771b41315f9fb949305b6ed257 lib/core/target.py
|
d93501771b41315f9fb949305b6ed257 lib/core/target.py
|
||||||
|
@ -149,7 +149,7 @@ d8b4a18a79528b01ff6cda31ad3ad057 plugins/dbms/informix/connector.py
|
||||||
6fe7d6928c98e66571e2ba674363ca9e plugins/dbms/informix/filesystem.py
|
6fe7d6928c98e66571e2ba674363ca9e plugins/dbms/informix/filesystem.py
|
||||||
14705fe9c3b253ab5232582af182da53 plugins/dbms/informix/fingerprint.py
|
14705fe9c3b253ab5232582af182da53 plugins/dbms/informix/fingerprint.py
|
||||||
9351f8d93ddb7d18902a78792138eba7 plugins/dbms/informix/__init__.py
|
9351f8d93ddb7d18902a78792138eba7 plugins/dbms/informix/__init__.py
|
||||||
6fe5ff4a3678d1cf2bee5695cb4b335a plugins/dbms/informix/syntax.py
|
f271d15319b400d33fceb0898f07dd04 plugins/dbms/informix/syntax.py
|
||||||
ad8a1007d23c2f63950d820297a40131 plugins/dbms/informix/takeover.py
|
ad8a1007d23c2f63950d820297a40131 plugins/dbms/informix/takeover.py
|
||||||
5fb9aaf874daa47ea2b672a22740e56b plugins/dbms/__init__.py
|
5fb9aaf874daa47ea2b672a22740e56b plugins/dbms/__init__.py
|
||||||
5ad8280cdfb7f09b008f3ed79ae5b4bf plugins/dbms/maxdb/connector.py
|
5ad8280cdfb7f09b008f3ed79ae5b4bf plugins/dbms/maxdb/connector.py
|
||||||
|
|
Loading…
Reference in New Issue
Block a user