mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-13 17:06:53 +00:00
Minor update of fingerprinting data
This commit is contained in:
parent
3f53b2bc05
commit
c45cf60fb4
6 changed files with 15 additions and 8 deletions
|
|
@ -89,6 +89,7 @@ class Fingerprint(GenericFingerprint):
|
|||
logger.info(infoMsg)
|
||||
|
||||
for version, check in (
|
||||
("2022", "CHARINDEX('16.0.',@@VERSION)>0"),
|
||||
("2019", "CHARINDEX('15.0.',@@VERSION)>0"),
|
||||
("Azure", "@@VERSION LIKE '%Azure%'"),
|
||||
("2017", "TRIM(NULL) IS NULL"),
|
||||
|
|
@ -151,7 +152,7 @@ class Fingerprint(GenericFingerprint):
|
|||
"7 or 2008 R2": ("6.1", (1, 0)),
|
||||
"8 or 2012": ("6.2", (0,)),
|
||||
"8.1 or 2012 R2": ("6.3", (0,)),
|
||||
"10 or 2016 or 2019": ("10.0", (0,))
|
||||
"10 or 11 or 2016 or 2019 or 2022": ("10.0", (0,))
|
||||
}
|
||||
|
||||
# Get back-end DBMS underlying operating system version
|
||||
|
|
|
|||
|
|
@ -47,11 +47,11 @@ class Fingerprint(GenericFingerprint):
|
|||
versions = (
|
||||
(80000, 80029), # MySQL 8.0
|
||||
(60000, 60014), # MySQL 6.0
|
||||
(50700, 50737), # MySQL 5.7
|
||||
(50700, 50739), # MySQL 5.7
|
||||
(50600, 50652), # MySQL 5.6
|
||||
(50500, 50563), # MySQL 5.5
|
||||
(50400, 50404), # MySQL 5.4
|
||||
(50100, 50174), # MySQL 5.1
|
||||
(50100, 50175), # MySQL 5.1
|
||||
(50000, 50097), # MySQL 5.0
|
||||
(40100, 40131), # MySQL 4.1
|
||||
(40000, 40032), # MySQL 4.0
|
||||
|
|
|
|||
|
|
@ -131,7 +131,9 @@ class Fingerprint(GenericFingerprint):
|
|||
infoMsg = "actively fingerprinting %s" % DBMS.PGSQL
|
||||
logger.info(infoMsg)
|
||||
|
||||
if inject.checkBooleanExpression("GEN_RANDOM_UUID() IS NOT NULL"):
|
||||
if inject.checkBooleanExpression("BIT_COUNT(NULL) IS NULL"):
|
||||
Backend.setVersion(">= 14.0")
|
||||
elif inject.checkBooleanExpression("GEN_RANDOM_UUID() IS NOT NULL"):
|
||||
Backend.setVersion(">= 13.0")
|
||||
elif inject.checkBooleanExpression("SINH(0)=0"):
|
||||
Backend.setVersion(">= 12.0")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue