mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +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:
|
||||
__userAgent = kb.userAgents[0]
|
||||
else:
|
||||
__userAgent = kb.userAgents[randomRange(stop=__count)]
|
||||
__userAgent = kb.userAgents[randomRange(stop=__count-1)]
|
||||
|
||||
__userAgent = sanitizeStr(__userAgent)
|
||||
conf.httpHeaders.append(("User-Agent", __userAgent))
|
||||
|
|
Loading…
Reference in New Issue
Block a user