mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-27 09:11:55 +00:00
fix for redirect/HOST header bug
This commit is contained in:
parent
1061c06617
commit
ccbd93cc2e
4 changed files with 32 additions and 8 deletions
|
|
@ -3127,4 +3127,12 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
|
|||
for target in retVal:
|
||||
kb.targetUrls.add(target)
|
||||
|
||||
return retVal
|
||||
|
||||
def getHostHeader(url):
|
||||
retVal = urlparse.urlparse(url).netloc
|
||||
|
||||
if any(map(lambda x: retVal.endswith(':%d' % x), [80, 443])):
|
||||
retVal = retVal.split(':')[0]
|
||||
|
||||
return retVal
|
||||
Loading…
Add table
Add a link
Reference in a new issue