mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Adding support for Percona (MySQL) fork
This commit is contained in:
parent
d227413a14
commit
186b3920e7
|
@ -76,6 +76,7 @@ class DBMS_DIRECTORY_NAME(object):
|
|||
class FORK(object):
|
||||
MARIADB = "MariaDB"
|
||||
MEMSQL = "MemSQL"
|
||||
PERCONA = "Percona"
|
||||
COCKROACHDB = "CockroachDB"
|
||||
TIDB = "TiDB"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.4.1.57"
|
||||
VERSION = "1.4.1.58"
|
||||
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)
|
||||
|
|
|
@ -92,6 +92,8 @@ class Fingerprint(GenericFingerprint):
|
|||
fork = FORK.MARIADB
|
||||
elif inject.checkBooleanExpression("VERSION() LIKE '%TiDB%'"):
|
||||
fork = FORK.TIDB
|
||||
elif inject.checkBooleanExpression("@@VERSION_COMMENT LIKE '%Percona%'"):
|
||||
fork = FORK.PERCONA
|
||||
else:
|
||||
fork = ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user