mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
This reverts commit 93a8828dab
.
This commit is contained in:
parent
93a8828dab
commit
d42187ac47
|
@ -226,7 +226,7 @@ def _setRequestParams():
|
||||||
if not (kb.processUserMarks and kb.customInjectionMark in conf.data):
|
if not (kb.processUserMarks and kb.customInjectionMark in conf.data):
|
||||||
conf.data = getattr(conf.data, UNENCODED_ORIGINAL_VALUE, conf.data)
|
conf.data = getattr(conf.data, UNENCODED_ORIGINAL_VALUE, conf.data)
|
||||||
conf.data = conf.data.replace(kb.customInjectionMark, ASTERISK_MARKER)
|
conf.data = conf.data.replace(kb.customInjectionMark, ASTERISK_MARKER)
|
||||||
conf.data = re.sub(r"(?si)((Content-Disposition[^\n]+?name\s*=\s*[\"']?(?P<name>[^\"'\r\n]+)[\"']?).+?)((%s)--)" % ("\r\n" if "\r\n" in conf.data else '\n'), lambda match: match.group(1) + (kb.customInjectionMark if 'filename' not in match.group(0) else '') + match.group(4), conf.data)
|
conf.data = re.sub(r"(?si)((Content-Disposition[^\n]+?name\s*=\s*[\"']?(?P<name>[^\"'\r\n]+)[\"']?).+?)((%s)+--)" % ("\r\n" if "\r\n" in conf.data else '\n'), functools.partial(process, repl=r"\g<1>%s\g<4>" % kb.customInjectionMark), conf.data)
|
||||||
|
|
||||||
if not kb.postHint:
|
if not kb.postHint:
|
||||||
if kb.customInjectionMark in conf.data: # later processed
|
if kb.customInjectionMark in conf.data: # later processed
|
||||||
|
|
4
thirdparty/multipart/multipartpost.py
vendored
4
thirdparty/multipart/multipartpost.py
vendored
|
@ -74,10 +74,6 @@ class MultipartPostHandler(_urllib.request.BaseHandler):
|
||||||
part = match.group(0)
|
part = match.group(0)
|
||||||
if b'\r' not in part:
|
if b'\r' not in part:
|
||||||
request.data = request.data.replace(part, part.replace(b'\n', b"\r\n"))
|
request.data = request.data.replace(part, part.replace(b'\n', b"\r\n"))
|
||||||
for match in re.finditer(b"(Content-Type[^\\n]+[\\n|\\r|\\r\\n]+)",request.data):
|
|
||||||
part = match.group(0)
|
|
||||||
if b'\r' not in part:
|
|
||||||
request.data = request.data.replace(part, part.replace(b'\n', b"\r\n"))
|
|
||||||
|
|
||||||
return request
|
return request
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user