mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Adding recognition of Amazon Aurora forks
This commit is contained in:
parent
1dd400f93d
commit
5f39016af7
|
@ -89,6 +89,7 @@ class FORK(object):
|
||||||
GREENPLUM = "Greenplum"
|
GREENPLUM = "Greenplum"
|
||||||
DRIZZLE = "Drizzle"
|
DRIZZLE = "Drizzle"
|
||||||
IGNITE = "Apache Ignite"
|
IGNITE = "Apache Ignite"
|
||||||
|
AURORA = "Aurora"
|
||||||
|
|
||||||
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.2.12"
|
VERSION = "1.4.2.13"
|
||||||
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)
|
||||||
|
|
|
@ -96,6 +96,8 @@ class Fingerprint(GenericFingerprint):
|
||||||
fork = FORK.DRIZZLE
|
fork = FORK.DRIZZLE
|
||||||
elif inject.checkBooleanExpression("@@VERSION_COMMENT LIKE '%Percona%'"):
|
elif inject.checkBooleanExpression("@@VERSION_COMMENT LIKE '%Percona%'"):
|
||||||
fork = FORK.PERCONA
|
fork = FORK.PERCONA
|
||||||
|
elif inject.checkBooleanExpression("AURORA_VERSION() LIKE '%'"): # Reference: https://aws.amazon.com/premiumsupport/knowledge-center/aurora-version-number/
|
||||||
|
fork = FORK.AURORA
|
||||||
else:
|
else:
|
||||||
fork = ""
|
fork = ""
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,12 @@ class Fingerprint(GenericFingerprint):
|
||||||
if fork is None:
|
if fork is None:
|
||||||
if inject.checkBooleanExpression("VERSION() LIKE '%CockroachDB%'"):
|
if inject.checkBooleanExpression("VERSION() LIKE '%CockroachDB%'"):
|
||||||
fork = FORK.COCKROACHDB
|
fork = FORK.COCKROACHDB
|
||||||
elif inject.checkBooleanExpression("VERSION() LIKE '%Redshift%'"): # Reference: https://dataedo.com/kb/query/amazon-redshift/check-server-version
|
elif inject.checkBooleanExpression("VERSION() LIKE '%Redshift%'"): # Reference: https://dataedo.com/kb/query/amazon-redshift/check-server-version
|
||||||
fork = FORK.REDSHIFT
|
fork = FORK.REDSHIFT
|
||||||
elif inject.checkBooleanExpression("VERSION() LIKE '%Greenplum%'"): # Reference: http://www.sqldbpros.com/wordpress/wp-content/uploads/2014/08/what-version-of-greenplum.png
|
elif inject.checkBooleanExpression("VERSION() LIKE '%Greenplum%'"): # Reference: http://www.sqldbpros.com/wordpress/wp-content/uploads/2014/08/what-version-of-greenplum.png
|
||||||
fork = FORK.GREENPLUM
|
fork = FORK.GREENPLUM
|
||||||
|
elif inject.checkBooleanExpression("AURORA_VERSION() LIKE '%'"): # Reference: https://aws.amazon.com/premiumsupport/knowledge-center/aurora-version-number/
|
||||||
|
fork = FORK.AURORA
|
||||||
else:
|
else:
|
||||||
fork = ""
|
fork = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user