Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 186b392

Browse files
committed
Adding support for Percona (MySQL) fork
1 parent d227413 commit 186b392

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class DBMS_DIRECTORY_NAME(object):
7676
class FORK(object):
7777
MARIADB = "MariaDB"
7878
MEMSQL = "MemSQL"
79+
PERCONA = "Percona"
7980
COCKROACHDB = "CockroachDB"
8081
TIDB = "TiDB"
8182

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.1.57"
21+
VERSION = "1.4.1.58"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/dbms/mysql/fingerprint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ def getFingerprint(self):
9292
fork = FORK.MARIADB
9393
elif inject.checkBooleanExpression("VERSION() LIKE '%TiDB%'"):
9494
fork = FORK.TIDB
95+
elif inject.checkBooleanExpression("@@VERSION_COMMENT LIKE '%Percona%'"):
96+
fork = FORK.PERCONA
9597
else:
9698
fork = ""
9799

0 commit comments

Comments
 (0)