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

Skip to content

Commit 323f128

Browse files
committed
Fixes #2774
1 parent 26b81f5 commit 323f128

3 files changed

Lines changed: 8 additions & 3 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.11.17"
22+
VERSION = "1.1.11.18"
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/connect.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
796796
raise404 = place != PLACE.URI if raise404 is None else raise404
797797
method = method or conf.method
798798

799+
pushValue(kb.postUrlEncode)
800+
799801
value = agent.adjustLateValues(value)
800802
payload = agent.extractPayload(value)
801803
threadData = getCurrentThreadData()
@@ -862,6 +864,7 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
862864
if not skip:
863865
payload = urlencode(payload, '%', False, place != PLACE.URI) # spaceplus is handled down below
864866
value = agent.replacePayload(value, payload)
867+
kb.postUrlEncode = False
865868

866869
if conf.hpp:
867870
if not any(conf.url.lower().endswith(_.lower()) for _ in (WEB_API.ASP, WEB_API.ASPX)):
@@ -1245,6 +1248,8 @@ def _randomizeParameter(paramString, randomParameter):
12451248

12461249
kb.originalCode = kb.originalCode or code
12471250

1251+
kb.postUrlEncode = popValue()
1252+
12481253
if kb.testMode:
12491254
kb.testQueryCount += 1
12501255

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ e1c000db9be27f973569b1a430629037 lib/core/option.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
6667019557ddeedf87b8eac9ff963e43 lib/core/settings.py
49+
85e16c1193fc5e567addc1cdb77a32d3 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d5a04d672a18f78deb2839c3745ff83c lib/core/target.py
@@ -68,7 +68,7 @@ d8d9bcf9e7107a5e2cf2dd10f115ac28 lib/parse/payloads.py
6868
d2f13a0e2fef5273d419d06e516122e1 lib/request/basicauthhandler.py
6969
9ef264b5c0f9e7989b8c2ab91d40400d lib/request/basic.py
7070
28348595147a731677c8bef470c6f57a lib/request/comparison.py
71-
a253670611499bc159879122e05622de lib/request/connect.py
71+
4015dee29a0d2bfc7820e828bfe96b91 lib/request/connect.py
7272
ad6f76839408d827abfcdc57813f8518 lib/request/direct.py
7373
4853bd0d523646315607a6a9a4c0b745 lib/request/dns.py
7474
effa0c3e4efceaf4932855e8e6677bf7 lib/request/httpshandler.py

0 commit comments

Comments
 (0)