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

Skip to content

Commit 5f39016

Browse files
committed
Adding recognition of Amazon Aurora forks
1 parent 1dd400f commit 5f39016

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

lib/core/enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class FORK(object):
8989
GREENPLUM = "Greenplum"
9090
DRIZZLE = "Drizzle"
9191
IGNITE = "Apache Ignite"
92+
AURORA = "Aurora"
9293

9394
class CUSTOM_LOGGING(object):
9495
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.2.12"
21+
VERSION = "1.4.2.13"
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/mysql/fingerprint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def getFingerprint(self):
9696
fork = FORK.DRIZZLE
9797
elif inject.checkBooleanExpression("@@VERSION_COMMENT LIKE '%Percona%'"):
9898
fork = FORK.PERCONA
99+
elif inject.checkBooleanExpression("AURORA_VERSION() LIKE '%'"): # Reference: https://aws.amazon.com/premiumsupport/knowledge-center/aurora-version-number/
100+
fork = FORK.AURORA
99101
else:
100102
fork = ""
101103

plugins/dbms/postgresql/fingerprint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ def getFingerprint(self):
3131
if fork is None:
3232
if inject.checkBooleanExpression("VERSION() LIKE '%CockroachDB%'"):
3333
fork = FORK.COCKROACHDB
34-
elif inject.checkBooleanExpression("VERSION() LIKE '%Redshift%'"): # Reference: https://dataedo.com/kb/query/amazon-redshift/check-server-version
34+
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
36+
elif inject.checkBooleanExpression("VERSION() LIKE '%Greenplum%'"): # Reference: http://www.sqldbpros.com/wordpress/wp-content/uploads/2014/08/what-version-of-greenplum.png
3737
fork = FORK.GREENPLUM
38+
elif inject.checkBooleanExpression("AURORA_VERSION() LIKE '%'"): # Reference: https://aws.amazon.com/premiumsupport/knowledge-center/aurora-version-number/
39+
fork = FORK.AURORA
3840
else:
3941
fork = ""
4042

0 commit comments

Comments
 (0)