mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
finalizing support for IPv6
This commit is contained in:
parent
b6d37d766a
commit
eed8d7eb5d
|
@ -3056,7 +3056,9 @@ def getHostHeader(url):
|
||||||
|
|
||||||
retVal = urlparse.urlparse(url).netloc
|
retVal = urlparse.urlparse(url).netloc
|
||||||
|
|
||||||
if any(retVal.endswith(':%d' % _) for _ in [80, 443]):
|
if re.search("http(s)?://\[.+\]", url, re.I):
|
||||||
|
retVal = extractRegexResult("http(s)?://\[(?P<result>.+)\]", url)
|
||||||
|
elif any(retVal.endswith(':%d' % _) for _ in [80, 443]):
|
||||||
retVal = retVal.split(':')[0]
|
retVal = retVal.split(':')[0]
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user