Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e929193

Browse files
committed
Apply --level also to User-Agent (level >= 4) and Cookie (level >= 3).
GET and POST parameters are always tested.
1 parent e735f29 commit e929193

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/controller/controller.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,14 @@ def start():
311311
parameters.insert(0, place)
312312

313313
for place in parameters:
314+
# Test User-Agent header only if --level >= 4
315+
condition = (place == "User-Agent" and conf.level < 4)
316+
# Test Cookie header only if --level >= 3
317+
condition |= (place == "Cookie" and conf.level < 3)
318+
319+
if condition:
320+
continue
321+
314322
if not conf.paramDict.has_key(place):
315323
continue
316324

0 commit comments

Comments
 (0)