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

Skip to content

Commit 881b49a

Browse files
committed
Fixes #2969
1 parent 93b4258 commit 881b49a

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
121121
origValue = _.split('=', 1)[1] if '=' in _ else ""
122122
elif place == PLACE.CUSTOM_HEADER:
123123
paramString = origValue
124-
origValue = origValue.split(kb.customInjectionMark)[0]
125124
origValue = origValue[origValue.find(',') + 1:]
125+
origValue = origValue.split(kb.customInjectionMark)[0]
126126
match = re.search(r"([^;]+)=(?P<value>[^;]*);?\Z", origValue)
127127
if match:
128128
origValue = match.group("value")

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.7"
22+
VERSION = "1.2.3.8"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,9 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
933933

934934
if value and place == PLACE.CUSTOM_HEADER:
935935
if value.split(',')[0].capitalize() == PLACE.COOKIE:
936-
cookie = value.split(',', 1)[1]
936+
cookie = value.split(',', 1)[-1]
937937
else:
938-
auxHeaders[value.split(',')[0]] = value.split(',', 1)[1]
938+
auxHeaders[value.split(',')[0]] = value.split(',', 1)[-1]
939939

940940
if conf.csrfToken:
941941
def _adjustParameter(paramString, parameter, newValue):

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ a4605691d340fd05d4bfe7dde922da92 lib/controller/checks.py
2525
9fbd66da9b5cf58bbb8474ccf9252bb7 lib/controller/controller.py
2626
a7b0c8e5a18a3abe8803999dcfc4664f lib/controller/handler.py
2727
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
28-
e3a3f5218b2e52dd0afafdfc9fed2002 lib/core/agent.py
28+
052c368ae6ca09362a19376c8483fa85 lib/core/agent.py
2929
86a4703d5474badd8462146510b2c460 lib/core/bigarray.py
3030
863d9c00a7684db29005705d6dcc36b9 lib/core/common.py
3131
2a40d5b5997265daa890545d4a4a59b9 lib/core/convert.py
@@ -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-
d156fefe5e6217850cae76325485f992 lib/core/settings.py
49+
22b96798d429186f0f273b3e2b399289 lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
3cc852f927833895361973fbcfd156d2 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-
6b70d287ed2508ffc66b37994d5ffca5 lib/request/connect.py
71+
f6a31eaa50907b724c25ead5a6fe7161 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)