Skip to content

Commit cce5c3c

Browse files
committed
minor changes for version numbers
1 parent 037db9b commit cce5c3c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

plugins/dbms/mysql/fingerprint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def __commentCheck(self):
5050
(50000, 50092), # MySQL 5.0
5151
(50100, 50156), # MySQL 5.1
5252
(50400, 50404), # MySQL 5.4
53-
(50500, 50511), # MySQL 5.5
53+
(50500, 50521), # MySQL 5.5
54+
(50600, 50604), # MySQL 5.6
5455
(60000, 60014), # MySQL 6.0
5556
)
5657

plugins/dbms/postgresql/fingerprint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def checkDbms(self):
6565
"""
6666
References for fingerprint:
6767
68-
* http://www.postgresql.org/docs/8.4/interactive/release.html (up to 8.4.2)
68+
* http://www.postgresql.org/docs/9.1/interactive/release.html (up to 9.1.3)
6969
"""
7070

7171
if not conf.extensiveFp and (Backend.isDbmsWithin(PGSQL_ALIASES) or conf.dbms in PGSQL_ALIASES):
@@ -103,7 +103,9 @@ def checkDbms(self):
103103
infoMsg = "actively fingerprinting %s" % DBMS.PGSQL
104104
logger.info(infoMsg)
105105

106-
if inject.checkBooleanExpression("LENGTH(TO_CHAR(1, 'EEEE'))>0"):
106+
if inject.checkBooleanExpression("REVERSE('sqlmap')='pamlqs'"):
107+
Backend.setVersion(">= 9.1.0")
108+
elif inject.checkBooleanExpression("LENGTH(TO_CHAR(1, 'EEEE'))>0"):
107109
Backend.setVersion(">= 9.0.0")
108110
elif inject.checkBooleanExpression("2=(SELECT DIV(6, 3))"):
109111
Backend.setVersionList([">= 8.4.0", "< 9.0.0"])

0 commit comments

Comments
 (0)