mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
Minor adjustment so that User-Agent and Referer headers are tests only when --level >= 3 and Cookie is tested only when --level >= 2
This commit is contained in:
parent
83d7803ce7
commit
45a005737d
|
@ -302,10 +302,12 @@ def start():
|
||||||
proceed = True
|
proceed = True
|
||||||
|
|
||||||
for place in parameters:
|
for place in parameters:
|
||||||
# Test User-Agent header only if --level >= 4
|
# Test User-Agent and Referer headers only if
|
||||||
condition = (place == "User-Agent" and conf.level < 4)
|
# --level >= 3
|
||||||
# Test Cookie header only if --level >= 3
|
condition = (place == PLACE.UA and conf.level < 3)
|
||||||
condition |= (place == "Cookie" and conf.level < 3)
|
condition |= (place == PLACE.REFERER and conf.level < 3)
|
||||||
|
# Test Cookie header only if --level >= 2
|
||||||
|
condition |= (place == PLACE.COOKIE and conf.level < 2)
|
||||||
|
|
||||||
if condition:
|
if condition:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user