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

Skip to content

Commit 76905e8

Browse files
committed
Patch related to the #2953
1 parent 8d6cc4a commit 76905e8

3 files changed

Lines changed: 7 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.2.3.3"
22+
VERSION = "1.2.3.4"
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,9 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
861861
skip = True
862862

863863
if not skip:
864-
payload = urlencode(payload, '%', False, place != PLACE.URI) # spaceplus is handled down below
864+
spaceplus = kb.postSpaceToPlus and place in (PLACE.POST, PLACE.CUSTOM_POST)
865+
value = urlencode(value, spaceplus=spaceplus)
866+
payload = urlencode(payload, safe='%', spaceplus=spaceplus)
865867
value = agent.replacePayload(value, payload)
866868
postUrlEncode = False
867869

@@ -1038,7 +1040,7 @@ def _randomizeParameter(paramString, randomParameter):
10381040
name = safeVariableNaming(name)
10391041
elif name in keywords:
10401042
name = "%s%s" % (name, EVALCODE_KEYWORD_SUFFIX)
1041-
value = urldecode(value, convall=True, plusspace=(item==post and kb.postSpaceToPlus))
1043+
value = urldecode(value, convall=True, spaceplus=(item==post and kb.postSpaceToPlus))
10421044
variables[name] = value
10431045

10441046
if cookie:

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
2826b47bfd9c3157039f7de0dba235ab lib/core/settings.py
49+
9fde692b6fa94718d5fbe8f804e4edde lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -68,7 +68,7 @@ fb2e2f05dde98caeac6ccf3e67192177 lib/parse/configfile.py
6868
4e60fe7c94bbfa631087ed3426df8ef0 lib/request/basicauthhandler.py
6969
eb39d5cbd69a2238e2f4ea2fde183cdb lib/request/basic.py
7070
c0cabedead14b8a23353b606672cff42 lib/request/comparison.py
71-
cbe4c7513501e8edbed9d5d3af9bdc1d lib/request/connect.py
71+
6b70d287ed2508ffc66b37994d5ffca5 lib/request/connect.py
7272
dd4598675027fae99f2e2475b05986da lib/request/direct.py
7373
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
7474
a1436e4e4f9b636cb8332f00b686bfd5 lib/request/httpshandler.py

0 commit comments

Comments
 (0)