mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
adding default value for referer in case --referer was not defined and --level>=3 used (so it could be tested with default value)
This commit is contained in:
parent
b53c9a2599
commit
c301b245a9
|
@ -1032,6 +1032,12 @@ def __setHTTPReferer():
|
|||
|
||||
conf.httpHeaders.append(("Referer", conf.referer))
|
||||
|
||||
elif conf.level >= 3:
|
||||
debugMsg = "setting the default HTTP Referer header"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
conf.httpHeaders.append(("Referer", conf.url))
|
||||
|
||||
def __setHTTPCookies():
|
||||
"""
|
||||
Set the HTTP Cookie header
|
||||
|
|
Loading…
Reference in New Issue
Block a user