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

Skip to content

Commit 5d3bd6e

Browse files
committed
Adding support for YugabyteDB
1 parent 29a7646 commit 5d3bd6e

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
@@ -101,6 +101,7 @@ class FORK(object):
101101
ENTERPRISEDB = "EnterpriseDB"
102102
YELLOWBRICK = "Yellowbrick"
103103
IRIS = "Iris"
104+
YUGABYTEDB = "YugabyteDB"
104105

105106
class CUSTOM_LOGGING(object):
106107
PAYLOAD = 9

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.5.1.26"
21+
VERSION = "1.5.1.27"
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/postgresql/fingerprint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def getFingerprint(self):
3939
fork = FORK.YELLOWBRICK
4040
elif inject.checkBooleanExpression("VERSION() LIKE '%EnterpriseDB%'"): # Reference: https://www.enterprisedb.com/edb-docs/d/edb-postgres-advanced-server/user-guides/user-guide/11/EDB_Postgres_Advanced_Server_Guide.1.087.html
4141
fork = FORK.ENTERPRISEDB
42+
elif inject.checkBooleanExpression("VERSION() LIKE '%YB-%'"): # Reference: https://github.com/yugabyte/yugabyte-db/issues/2447#issue-499562926
43+
fork = FORK.YUGABYTEDB
4244
elif inject.checkBooleanExpression("AURORA_VERSION() LIKE '%'"): # Reference: https://aws.amazon.com/premiumsupport/knowledge-center/aurora-version-number/
4345
fork = FORK.AURORA
4446
else:

0 commit comments

Comments
 (0)