mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Fixes #1337
This commit is contained in:
@@ -2280,10 +2280,9 @@ def findMultipartPostBoundary(post):
|
|||||||
candidates = []
|
candidates = []
|
||||||
|
|
||||||
for match in re.finditer(r"(?m)^--(.+?)(--)?$", post or ""):
|
for match in re.finditer(r"(?m)^--(.+?)(--)?$", post or ""):
|
||||||
_ = re.search(r"\w+", match.group(1))
|
_ = match.group(1).strip().strip('-')
|
||||||
_ = _.group(0) if _ else None
|
|
||||||
|
|
||||||
if _ is None or _ in done:
|
if _ in done:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
candidates.append((post.count(_), _))
|
candidates.append((post.count(_), _))
|
||||||
|
|||||||
@@ -314,6 +314,7 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
|
|||||||
# Headers
|
# Headers
|
||||||
elif re.search(r"\A\S+: ", line):
|
elif re.search(r"\A\S+: ", line):
|
||||||
key, value = line.split(": ", 1)
|
key, value = line.split(": ", 1)
|
||||||
|
value = value.replace("\r", "").replace("\n", "")
|
||||||
|
|
||||||
# Cookie and Host headers
|
# Cookie and Host headers
|
||||||
if key.upper() == HTTP_HEADER.COOKIE.upper():
|
if key.upper() == HTTP_HEADER.COOKIE.upper():
|
||||||
|
|||||||
Reference in New Issue
Block a user