Skip to content

Commit f24bf55

Browse files
committed
Update related to #5571
1 parent c096f87 commit f24bf55

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/core/enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class FORK(object):
106106
YELLOWBRICK = "Yellowbrick"
107107
IRIS = "Iris"
108108
YUGABYTEDB = "YugabyteDB"
109+
OPENGAUSS = "OpenGauss"
109110

110111
class CUSTOM_LOGGING(object):
111112
PAYLOAD = 9

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.12.3"
23+
VERSION = "1.7.12.4"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -294,7 +294,7 @@
294294
# Note: (<regular>) + (<forks>)
295295
MSSQL_ALIASES = ("microsoft sql server", "mssqlserver", "mssql", "ms")
296296
MYSQL_ALIASES = ("mysql", "my") + ("mariadb", "maria", "memsql", "tidb", "percona", "drizzle")
297-
PGSQL_ALIASES = ("postgresql", "postgres", "pgsql", "psql", "pg") + ("cockroach", "cockroachdb", "amazon redshift", "redshift", "greenplum", "yellowbrick", "enterprisedb", "yugabyte", "yugabytedb")
297+
PGSQL_ALIASES = ("postgresql", "postgres", "pgsql", "psql", "pg") + ("cockroach", "cockroachdb", "amazon redshift", "redshift", "greenplum", "yellowbrick", "enterprisedb", "yugabyte", "yugabytedb", "opengauss")
298298
ORACLE_ALIASES = ("oracle", "orcl", "ora", "or")
299299
SQLITE_ALIASES = ("sqlite", "sqlite3")
300300
ACCESS_ALIASES = ("microsoft access", "msaccess", "access", "jet")

plugins/dbms/postgresql/fingerprint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def getFingerprint(self):
4141
fork = FORK.ENTERPRISEDB
4242
elif inject.checkBooleanExpression("VERSION() LIKE '%YB-%'"): # Reference: https://github.com/yugabyte/yugabyte-db/issues/2447#issue-499562926
4343
fork = FORK.YUGABYTEDB
44+
elif inject.checkBooleanExpression("VERSION() LIKE '%openGauss%'"):
45+
fork = FORK.OPENGAUSS
4446
elif inject.checkBooleanExpression("AURORA_VERSION() LIKE '%'"): # Reference: https://aws.amazon.com/premiumsupport/knowledge-center/aurora-version-number/
4547
fork = FORK.AURORA
4648
else:

0 commit comments

Comments
 (0)