mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Potential bug fix (escaping formatted regular expressions)
This commit is contained in:
@@ -233,7 +233,7 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
|
||||
for match in re.finditer(BURP_XML_HISTORY_REGEX, content, re.I | re.S):
|
||||
port, request = match.groups()
|
||||
request = request.decode("base64")
|
||||
_ = re.search(r"%s:.+" % HTTP_HEADER.HOST, request)
|
||||
_ = re.search(r"%s:.+" % re.escape(HTTP_HEADER.HOST), request)
|
||||
if _:
|
||||
host = _.group(0).strip()
|
||||
if not re.search(r":\d+\Z", host):
|
||||
|
||||
Reference in New Issue
Block a user