mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
proper fix
This commit is contained in:
parent
1a052245a6
commit
983546d6bf
|
@ -1090,6 +1090,7 @@ def __setHTTPUserAgent():
|
||||||
conf.httpHeaders.append(("User-Agent", __defaultHTTPUserAgent()))
|
conf.httpHeaders.append(("User-Agent", __defaultHTTPUserAgent()))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
if not kb.userAgents:
|
||||||
debugMsg = "loading random HTTP User-Agent header(s) from "
|
debugMsg = "loading random HTTP User-Agent header(s) from "
|
||||||
debugMsg += "file '%s'" % paths.USER_AGENTS
|
debugMsg += "file '%s'" % paths.USER_AGENTS
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
@ -1102,6 +1103,7 @@ def __setHTTPUserAgent():
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
conf.httpHeaders.append((HTTPHEADER.USER_AGENT, __defaultHTTPUserAgent()))
|
conf.httpHeaders.append((HTTPHEADER.USER_AGENT, __defaultHTTPUserAgent()))
|
||||||
|
return
|
||||||
|
|
||||||
count = len(kb.userAgents)
|
count = len(kb.userAgents)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user