Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1363422

Browse files
committed
Minor update of fingerprints
1 parent 77e1383 commit 1363422

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.3.3.21"
22+
VERSION = "1.3.3.22"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def _commentCheck(self):
4545
(32300, 32359), # MySQL 3.23
4646
(40000, 40032), # MySQL 4.0
4747
(40100, 40131), # MySQL 4.1
48-
(50000, 50096), # MySQL 5.0
49-
(50100, 50172), # MySQL 5.1
48+
(50000, 50097), # MySQL 5.0
49+
(50100, 50174), # MySQL 5.1
5050
(50400, 50404), # MySQL 5.4
51-
(50500, 50564), # MySQL 5.5
52-
(50600, 50644), # MySQL 5.6
51+
(50500, 50562), # MySQL 5.5
52+
(50600, 50646), # MySQL 5.6
5353
(50700, 50726), # MySQL 5.7
5454
(60000, 60014), # MySQL 6.0
5555
(80000, 80015), # MySQL 8.0

plugins/dbms/postgresql/fingerprint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ def checkDbms(self):
9797
infoMsg = "actively fingerprinting %s" % DBMS.PGSQL
9898
logger.info(infoMsg)
9999

100-
if inject.checkBooleanExpression("XMLTABLE(NULL) IS NULL"):
101-
Backend.setVersion(">= 10.0")
100+
if inject.checkBooleanExpression("SHA256(NULL) IS NULL"):
101+
Backend.setVersion(">= 11.0")
102+
elif inject.checkBooleanExpression("XMLTABLE(NULL) IS NULL"):
103+
Backend.setVersionList([">= 10.0", "< 11.0"])
102104
elif inject.checkBooleanExpression("SIND(0)=0"):
103105
Backend.setVersionList([">= 9.6.0", "< 10.0"])
104106
elif inject.checkBooleanExpression("TO_JSONB(1) IS NOT NULL"):

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
2b13a6e41ad1b354ff2a3f60a6fba723 lib/core/settings.py
53+
a6370a4c60104413c514c021f8409a44 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
d9483455ff80d33a55db46ae2fa34a05 lib/core/target.py
@@ -181,7 +181,7 @@ a5aa91bd7248d4f7ad508cf69f45696d plugins/dbms/mssqlserver/takeover.py
181181
dbd6121fcc92249ee0c023ee28e30274 plugins/dbms/mysql/connector.py
182182
a94bde2f4dcf3a5f166302d07ea32907 plugins/dbms/mysql/enumeration.py
183183
81c762ceba0892d0d6d78d70f513d20a plugins/dbms/mysql/filesystem.py
184-
fd79ec2504b6bada7d2da233a549af53 plugins/dbms/mysql/fingerprint.py
184+
24088cb4e6f163b4eaf9310a7bc6907d plugins/dbms/mysql/fingerprint.py
185185
040835bde6be85ebc1a6667dcd08940e plugins/dbms/mysql/__init__.py
186186
dd6bd1d3d561755b96e953ede16cb8fc plugins/dbms/mysql/syntax.py
187187
6c91ef5b5a6cd29cef4bd9bc3c369454 plugins/dbms/mysql/takeover.py
@@ -195,7 +195,7 @@ c7bb3f112aad2ea7ea92e036e9aab6a7 plugins/dbms/oracle/__init__.py
195195
393a17dc8cb982ebb27665ead6b84bf1 plugins/dbms/postgresql/connector.py
196196
86f0e0c9c4bc155c93277e879e3c3311 plugins/dbms/postgresql/enumeration.py
197197
d68b5a9d6e608f15fbe2c520613ece4a plugins/dbms/postgresql/filesystem.py
198-
2af014c49f103cb27bc547cc12641e2b plugins/dbms/postgresql/fingerprint.py
198+
a2ac0498d89797041bf65e4990cf8430 plugins/dbms/postgresql/fingerprint.py
199199
fb018fd23dcebdb36dddd22ac92efa2c plugins/dbms/postgresql/__init__.py
200200
290ea28e1215565d9d12ede3422a4dcf plugins/dbms/postgresql/syntax.py
201201
339bc65824b5c946ec40a12cd0257df1 plugins/dbms/postgresql/takeover.py

0 commit comments

Comments
 (0)