Skip to content

Commit 331ccc5

Browse files
committed
Fixes #3100
1 parent d5627fd commit 331ccc5

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

‎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.2.5.11"
22+
VERSION = "1.2.5.12"
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)

‎lib/request/inject.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def _goInference(payload, expression, charsetType=None, firstChar=None, lastChar
7777

7878
value = _goDns(payload, expression)
7979

80+
if payload is None:
81+
return None
82+
8083
if value is not None:
8184
return value
8285

‎lib/techniques/blind/inference.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
6969
finalValue = None
7070
retrievedLength = 0
7171

72+
if payload is None:
73+
return 0, None
74+
7275
if charsetType is None and conf.charset:
7376
asciiTbl = sorted(set(ord(_) for _ in conf.charset))
7477
else:
@@ -187,7 +190,7 @@ def tryHint(idx):
187190
with hintlock:
188191
hintValue = kb.hintValue
189192

190-
if hintValue is not None and len(hintValue) >= idx:
193+
if payload is not None and hintValue is not None and len(hintValue) >= idx:
191194
if Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.ACCESS, DBMS.MAXDB, DBMS.DB2):
192195
posValue = hintValue[idx - 1]
193196
else:

‎txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4747
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4848
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4949
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
50-
5685eacb5dd1a67c8e30b85b7ead70a9 lib/core/settings.py
50+
28b7ef08849aa6d4f652a9d1c58ca8f2 lib/core/settings.py
5151
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5252
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5353
6306284edcccc185b2df085438572b0d lib/core/target.py
@@ -74,7 +74,7 @@ dd4598675027fae99f2e2475b05986da lib/request/direct.py
7474
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
7575
eee965d781546d05f36cfd14af050913 lib/request/httpshandler.py
7676
1e5532ede194ac9c083891c2f02bca93 lib/request/__init__.py
77-
b188a11542a996276abbbc48913501c3 lib/request/inject.py
77+
c2fb1abbb7127ec6419bbf852c0a458d lib/request/inject.py
7878
aaf956c1e9855836c3f372e29d481393 lib/request/methodrequest.py
7979
51eeaa8abf5ba62aaaade66d46ff8b00 lib/request/pkihandler.py
8080
2c3774b72586985719035b195f144d7b lib/request/rangehandler.py
@@ -88,7 +88,7 @@ fb9e34d558293b5d6b9727f440712886 lib/takeover/registry.py
8888
48575dde7bb867b7937769f569a98309 lib/takeover/udf.py
8989
2665fa7eedb19a1b10ffe949999b75f1 lib/takeover/web.py
9090
f1decf0a987bd3a4bc757212cbe6a6c8 lib/takeover/xp_cmdshell.py
91-
2543e14cc7f6e239b49dd40f41bc34fa lib/techniques/blind/inference.py
91+
4a7f231e597f754e9fcd116d13ad1a4d lib/techniques/blind/inference.py
9292
1e5532ede194ac9c083891c2f02bca93 lib/techniques/blind/__init__.py
9393
1e5532ede194ac9c083891c2f02bca93 lib/techniques/dns/__init__.py
9494
799faf9008527d2e9da9d923e50f685a lib/techniques/dns/test.py

0 commit comments

Comments
 (0)