mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Adding support for TiDB
This commit is contained in:
parent
447e5ec0ea
commit
3779531540
4 changed files with 10 additions and 3 deletions
|
|
@ -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 = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue