mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Patch for IPv6 addresses (proper Host header)
This commit is contained in:
@@ -4149,6 +4149,9 @@ def getHostHeader(url):
|
||||
elif any(retVal.endswith(':%d' % _) for _ in (80, 443)):
|
||||
retVal = retVal.split(':')[0]
|
||||
|
||||
if retVal and retVal.count(':') > 1 and not any(_ in retVal for _ in ('[', ']')):
|
||||
retVal = "[%s]" % retVal
|
||||
|
||||
return retVal
|
||||
|
||||
def checkDeprecatedOptions(args):
|
||||
|
||||
Reference in New Issue
Block a user