Skip to content

Commit c45cf60

Browse files
committed
Minor update of fingerprinting data
1 parent 3f53b2b commit c45cf60

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

data/xml/banner/generic.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<!-- Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx -->
3535

3636
<regexp value="Windows.*\b10\.0">
37-
<info type="Windows" distrib="2016|2019|10|11"/>
37+
<info type="Windows" distrib="2016|2019|2022|10|11"/>
3838
</regexp>
3939

4040
<regexp value="Windows.*\b6\.3">

data/xml/banner/server.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<!-- Microsoft IIS -->
1111

1212
<regexp value="Microsoft-IIS/(10\.0)">
13-
<info technology="Microsoft IIS" tech_version="1" type="Windows" distrib="2019|2016|10"/>
13+
<info technology="Microsoft IIS" tech_version="1" type="Windows" distrib="2016|2019|2022|10|11"/>
1414
</regexp>
1515

1616
<regexp value="Microsoft-IIS/(8\.5)">
@@ -878,7 +878,11 @@
878878
</regexp>
879879

880880
<regexp value="Apache/2\.4\.46 \(Ubuntu\)">
881-
<info type="Linux" distrib="Ubuntu" release="21.04|21.10" codename="eoan|focal"/>
881+
<info type="Linux" distrib="Ubuntu" release="21.04|21.10" codename="hirsute|impish"/>
882+
</regexp>
883+
884+
<regexp value="Apache/2\.4\.52 \(Ubuntu\)">
885+
<info type="Linux" distrib="Ubuntu" release="22.04" codename="jammy"/>
882886
</regexp>
883887

884888
<!-- Nginx -->

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.6.10.1"
23+
VERSION = "1.6.10.2"
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/mssqlserver/fingerprint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def checkDbms(self):
8989
logger.info(infoMsg)
9090

9191
for version, check in (
92+
("2022", "CHARINDEX('16.0.',@@VERSION)>0"),
9293
("2019", "CHARINDEX('15.0.',@@VERSION)>0"),
9394
("Azure", "@@VERSION LIKE '%Azure%'"),
9495
("2017", "TRIM(NULL) IS NULL"),
@@ -151,7 +152,7 @@ def checkDbmsOs(self, detailed=False):
151152
"7 or 2008 R2": ("6.1", (1, 0)),
152153
"8 or 2012": ("6.2", (0,)),
153154
"8.1 or 2012 R2": ("6.3", (0,)),
154-
"10 or 2016 or 2019": ("10.0", (0,))
155+
"10 or 11 or 2016 or 2019 or 2022": ("10.0", (0,))
155156
}
156157

157158
# Get back-end DBMS underlying operating system version

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, 50737), # MySQL 5.7
50+
(50700, 50739), # MySQL 5.7
5151
(50600, 50652), # MySQL 5.6
5252
(50500, 50563), # MySQL 5.5
5353
(50400, 50404), # MySQL 5.4
54-
(50100, 50174), # MySQL 5.1
54+
(50100, 50175), # 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("GEN_RANDOM_UUID() IS NOT NULL"):
134+
if inject.checkBooleanExpression("BIT_COUNT(NULL) IS NULL"):
135+
Backend.setVersion(">= 14.0")
136+
elif inject.checkBooleanExpression("GEN_RANDOM_UUID() IS NOT NULL"):
135137
Backend.setVersion(">= 13.0")
136138
elif inject.checkBooleanExpression("SINH(0)=0"):
137139
Backend.setVersion(">= 12.0")

0 commit comments

Comments
 (0)