Skip to content

Commit fb3f428

Browse files
committed
Fixes #5057
1 parent 52f2faf commit fb3f428

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/core/agent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,11 @@ def adjustLateValues(self, payload):
418418
payload = re.sub(r"(?i)\bMID\(", "SUBSTR(", payload)
419419
payload = re.sub(r"(?i)\bNCHAR\b", "CHAR", payload)
420420

421+
# NOTE: https://github.com/sqlmapproject/sqlmap/issues/5057
422+
match = re.search(r"(=0x)(303a303a)3(\d{2,})", payload)
423+
if match:
424+
payload = payload.replace(match.group(0), "%s%s%s" % (match.group(1), match.group(2).upper(), "".join("3%s" % _ for _ in match.group(3))))
425+
421426
return payload
422427

423428
def getComment(self, request):

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.4.3"
23+
VERSION = "1.6.4.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)

0 commit comments

Comments
 (0)