mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Adding support for Amazon Redshift (pgsql fork)
This commit is contained in:
parent
421f1878e3
commit
8d343fc2a6
|
@ -81,6 +81,7 @@ class FORK(object):
|
||||||
PERCONA = "Percona"
|
PERCONA = "Percona"
|
||||||
COCKROACHDB = "CockroachDB"
|
COCKROACHDB = "CockroachDB"
|
||||||
TIDB = "TiDB"
|
TIDB = "TiDB"
|
||||||
|
REDSHIFT = "Amazon Redshift"
|
||||||
|
|
||||||
class CUSTOM_LOGGING(object):
|
class CUSTOM_LOGGING(object):
|
||||||
PAYLOAD = 9
|
PAYLOAD = 9
|
||||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.4.1.62"
|
VERSION = "1.4.1.63"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -29,7 +29,13 @@ class Fingerprint(GenericFingerprint):
|
||||||
fork = hashDBRetrieve(HASHDB_KEYS.DBMS_FORK)
|
fork = hashDBRetrieve(HASHDB_KEYS.DBMS_FORK)
|
||||||
|
|
||||||
if fork is None:
|
if fork is None:
|
||||||
fork = inject.checkBooleanExpression("VERSION() LIKE '%CockroachDB%'") and FORK.COCKROACHDB or ""
|
if inject.checkBooleanExpression("VERSION() LIKE '%CockroachDB%'"):
|
||||||
|
fork = FORK.COCKROACHDB
|
||||||
|
elif inject.checkBooleanExpression("VERSION() LIKE '%Redshift%'"): # Reference: https://dataedo.com/kb/query/amazon-redshift/check-server-version
|
||||||
|
fork = FORK.REDSHIFT
|
||||||
|
else:
|
||||||
|
fork = ""
|
||||||
|
|
||||||
hashDBWrite(HASHDB_KEYS.DBMS_FORK, fork)
|
hashDBWrite(HASHDB_KEYS.DBMS_FORK, fork)
|
||||||
|
|
||||||
value = ""
|
value = ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user