mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Adding support for TiDB
This commit is contained in:
@@ -99,7 +99,13 @@ class Fingerprint(GenericFingerprint):
|
||||
fork = hashDBRetrieve(HASHDB_KEYS.DBMS_FORK)
|
||||
|
||||
if fork is None:
|
||||
fork = inject.checkBooleanExpression("VERSION() LIKE '%MariaDB%'") and FORK.MARIADB or ""
|
||||
if inject.checkBooleanExpression("VERSION() LIKE '%MariaDB%'"):
|
||||
fork = FORK.MARIADB
|
||||
elif inject.checkBooleanExpression("VERSION() LIKE '%TiDB%'"):
|
||||
fork = FORK.TIDB
|
||||
else:
|
||||
fork = ""
|
||||
|
||||
hashDBWrite(HASHDB_KEYS.DBMS_FORK, fork)
|
||||
|
||||
value = ""
|
||||
|
||||
Reference in New Issue
Block a user