mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
fix for a bug reported by BugTrace (IndexError: list index out of range)
This commit is contained in:
parent
bfc9378542
commit
c471b815cc
|
@ -946,7 +946,7 @@ def __setHTTPUserAgent():
|
||||||
if __count == 1:
|
if __count == 1:
|
||||||
__userAgent = kb.userAgents[0]
|
__userAgent = kb.userAgents[0]
|
||||||
else:
|
else:
|
||||||
__userAgent = kb.userAgents[randomRange(stop=__count)]
|
__userAgent = kb.userAgents[randomRange(stop=__count-1)]
|
||||||
|
|
||||||
__userAgent = sanitizeStr(__userAgent)
|
__userAgent = sanitizeStr(__userAgent)
|
||||||
conf.httpHeaders.append(("User-Agent", __userAgent))
|
conf.httpHeaders.append(("User-Agent", __userAgent))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user