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

Skip to content

Commit 8ab4f62

Browse files
committed
Adding recognition of Greenplum (pgsql fork)
1 parent 8d343fc commit 8ab4f62

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
@@ -82,6 +82,7 @@ class FORK(object):
8282
COCKROACHDB = "CockroachDB"
8383
TIDB = "TiDB"
8484
REDSHIFT = "Amazon Redshift"
85+
GREENPLUM = "Greenplum"
8586

8687
class CUSTOM_LOGGING(object):
8788
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.4.1.63"
21+
VERSION = "1.4.1.64"
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
@@ -33,6 +33,8 @@ def getFingerprint(self):
3333
fork = FORK.COCKROACHDB
3434
elif inject.checkBooleanExpression("VERSION() LIKE '%Redshift%'"): # Reference: https://dataedo.com/kb/query/amazon-redshift/check-server-version
3535
fork = FORK.REDSHIFT
36+
elif inject.checkBooleanExpression("VERSION() LIKE '%Greenplum%'"): # Reference: http://www.sqldbpros.com/wordpress/wp-content/uploads/2014/08/what-version-of-greenplum.png
37+
fork = FORK.GREENPLUM
3638
else:
3739
fork = ""
3840

0 commit comments

Comments
 (0)