Skip to content

Commit abc0929

Browse files
committed
Minor update of fingerprinting stuff
1 parent d5547d9 commit abc0929

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.2.14"
23+
VERSION = "1.7.2.15"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ def _commentCheck(self):
4747
versions = (
4848
(80000, 80029), # MySQL 8.0
4949
(60000, 60014), # MySQL 6.0
50-
(50700, 50739), # MySQL 5.7
50+
(50700, 50741), # MySQL 5.7
5151
(50600, 50652), # MySQL 5.6
5252
(50500, 50563), # MySQL 5.5
5353
(50400, 50404), # MySQL 5.4
54-
(50100, 50175), # MySQL 5.1
54+
(50100, 50174), # MySQL 5.1
5555
(50000, 50097), # MySQL 5.0
5656
(40100, 40131), # MySQL 4.1
5757
(40000, 40032), # MySQL 4.0

plugins/dbms/postgresql/fingerprint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ def checkDbms(self):
131131
infoMsg = "actively fingerprinting %s" % DBMS.PGSQL
132132
logger.info(infoMsg)
133133

134-
if inject.checkBooleanExpression("BIT_COUNT(NULL) IS NULL"):
134+
if inject.checkBooleanExpression("REGEXP_COUNT(NULL,NULL) IS NULL"):
135+
Backend.setVersion(">= 15.0")
136+
elif inject.checkBooleanExpression("BIT_COUNT(NULL) IS NULL"):
135137
Backend.setVersion(">= 14.0")
136138
elif inject.checkBooleanExpression("GEN_RANDOM_UUID() IS NOT NULL"):
137139
Backend.setVersion(">= 13.0")

0 commit comments

Comments
 (0)