Skip to content

Commit 9d85d30

Browse files
committed
Minor update of fingerprinting payloads
1 parent 7a6abb5 commit 9d85d30

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
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.10.3"
23+
VERSION = "1.7.10.4"
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ def _commentCheck(self):
4545
# Reference: https://dev.mysql.com/doc/relnotes/mysql/<major>.<minor>/en/
4646

4747
versions = (
48-
(80000, 80033), # MySQL 8.0
48+
(80100, 80102), # MySQL 8.1
49+
(80000, 80035), # MySQL 8.0
4950
(60000, 60014), # MySQL 6.0
50-
(50700, 50742), # MySQL 5.7
51+
(50700, 50744), # MySQL 5.7
5152
(50600, 50652), # MySQL 5.6
5253
(50500, 50563), # MySQL 5.5
5354
(50400, 50404), # MySQL 5.4

plugins/dbms/oracle/fingerprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def checkDbms(self):
105105
logger.info(infoMsg)
106106

107107
# Reference: https://en.wikipedia.org/wiki/Oracle_Database
108-
for version in ("21c", "19c", "18c", "12c", "11g", "10g", "9i", "8i", "7"):
108+
for version in ("23c", "21c", "19c", "18c", "12c", "11g", "10g", "9i", "8i", "7"):
109109
number = int(re.search(r"([\d]+)", version).group(1))
110110
output = inject.checkBooleanExpression("%d=(SELECT SUBSTR((VERSION),1,%d) FROM SYS.PRODUCT_COMPONENT_VERSION WHERE ROWNUM=1)" % (number, 1 if number < 10 else 2))
111111

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("REGEXP_COUNT(NULL,NULL) IS NULL"):
134+
if inject.checkBooleanExpression("RANDOM_NORMAL(0.0, 1.0) IS NOT NULL"):
135+
Backend.setVersion(">= 16.0")
136+
elif inject.checkBooleanExpression("REGEXP_COUNT(NULL,NULL) IS NULL"):
135137
Backend.setVersion(">= 15.0")
136138
elif inject.checkBooleanExpression("BIT_COUNT(NULL) IS NULL"):
137139
Backend.setVersion(">= 14.0")

0 commit comments

Comments
 (0)