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

Skip to content

Commit b498077

Browse files
committed
Fixes #2577
1 parent 71457fe commit b498077

3 files changed

Lines changed: 6 additions & 5 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.1.6.11"
22+
VERSION = "1.1.6.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/techniques/blind/inference.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ def tryHint(idx):
187187
else:
188188
posValue = ord(hintValue[idx - 1])
189189

190-
forgedPayload = safeStringFormat(payload.replace(INFERENCE_GREATER_CHAR, INFERENCE_EQUALS_CHAR), (expressionUnescaped, idx, posValue))
191-
result = Request.queryPage(forgedPayload, timeBasedCompare=timeBasedCompare, raise404=False)
190+
forgedPayload = agent.extractPayload(payload)
191+
forgedPayload = safeStringFormat(forgedPayload.replace(INFERENCE_GREATER_CHAR, INFERENCE_EQUALS_CHAR), (expressionUnescaped, idx, posValue))
192+
result = Request.queryPage(agent.replacePayload(payload, forgedPayload), timeBasedCompare=timeBasedCompare, raise404=False)
192193
incrementCounter(kb.technique)
193194

194195
if result:

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ f1531be15ed98555a9010e2db3c9da75 lib/core/optiondict.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
7c12881eaa807ff110b6ac35707c9a90 lib/core/settings.py
49+
52466f71e47a7aa9e94d05790b148c03 lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
04cca8a05faef752c98d1a775d98a0e6 lib/core/target.py
@@ -87,7 +87,7 @@ ac541a0d38e4ecb4e41e97799a7235f4 lib/takeover/registry.py
8787
d466eab3ff82dbe29dc820e303eb4cff lib/takeover/udf.py
8888
b7dd3a2697a08108ddc9a4264922c2e8 lib/takeover/web.py
8989
604b087dc52dbcb4c3938ad1bf63829c lib/takeover/xp_cmdshell.py
90-
9f03972ea5ce2df74d43be5f30f068eb lib/techniques/blind/inference.py
90+
201e7e69f9161dfa3aa10d83f690a488 lib/techniques/blind/inference.py
9191
310efc965c862cfbd7b0da5150a5ad36 lib/techniques/blind/__init__.py
9292
310efc965c862cfbd7b0da5150a5ad36 lib/techniques/dns/__init__.py
9393
ab1601a7f429b47637c4fb8af703d0f1 lib/techniques/dns/test.py

0 commit comments

Comments
 (0)