mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
proper fix
This commit is contained in:
parent
7031ef8e00
commit
1b2cd44255
|
@ -1107,6 +1107,18 @@ def parseTargetUrl():
|
||||||
conf.url = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, conf.path)
|
conf.url = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, conf.path)
|
||||||
conf.url = conf.url.replace(URI_QUESTION_MARKER, '?')
|
conf.url = conf.url.replace(URI_QUESTION_MARKER, '?')
|
||||||
|
|
||||||
|
if not conf.referer and intersect(REFERER_ALIASES, conf.testParameter, True):
|
||||||
|
debugMsg = "setting the HTTP Referer header to the target url"
|
||||||
|
logger.debug(debugMsg)
|
||||||
|
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.REFERER, conf.httpHeaders)
|
||||||
|
conf.httpHeaders.append((HTTPHEADER.REFERER, conf.url))
|
||||||
|
|
||||||
|
if not conf.host and intersect(HOST_ALIASES, conf.testParameter, True):
|
||||||
|
debugMsg = "setting the HTTP Host header to the target url"
|
||||||
|
logger.debug(debugMsg)
|
||||||
|
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.HOST, conf.httpHeaders)
|
||||||
|
conf.httpHeaders.append((HTTPHEADER.HOST, getHostHeader(conf.url)))
|
||||||
|
|
||||||
def expandAsteriskForColumns(expression):
|
def expandAsteriskForColumns(expression):
|
||||||
"""
|
"""
|
||||||
If the user provided an asterisk rather than the column(s)
|
If the user provided an asterisk rather than the column(s)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user