File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ class FORK(object):
8181 PERCONA = "Percona"
8282 COCKROACHDB = "CockroachDB"
8383 TIDB = "TiDB"
84+ REDSHIFT = "Amazon Redshift"
8485
8586class CUSTOM_LOGGING (object ):
8687 PAYLOAD = 9
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.4.1.62 "
21+ VERSION = "1.4.1.63 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -29,7 +29,13 @@ def getFingerprint(self):
2929 fork = hashDBRetrieve (HASHDB_KEYS .DBMS_FORK )
3030
3131 if fork is None :
32- fork = inject .checkBooleanExpression ("VERSION() LIKE '%CockroachDB%'" ) and FORK .COCKROACHDB or ""
32+ if inject .checkBooleanExpression ("VERSION() LIKE '%CockroachDB%'" ):
33+ fork = FORK .COCKROACHDB
34+ elif inject .checkBooleanExpression ("VERSION() LIKE '%Redshift%'" ): # Reference: https://dataedo.com/kb/query/amazon-redshift/check-server-version
35+ fork = FORK .REDSHIFT
36+ else :
37+ fork = ""
38+
3339 hashDBWrite (HASHDB_KEYS .DBMS_FORK , fork )
3440
3541 value = ""
You can’t perform that action at this time.
0 commit comments