Skip to content

Commit

Permalink
Error in fuzz count when using repeated FUZZ keywords (fixes #411)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Mar 23, 2015
1 parent 5e60f67 commit 5075ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/fuzzer/fuzzobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ def from_seed(seed, payload):
http_method = None

marker_regex = re.compile("FUZ\d*Z",re.MULTILINE|re.DOTALL)
fuzz_words = len(marker_regex.findall(rawReq))
fuzz_words = len(set(marker_regex.findall(rawReq)))

if seed.wf_fuzz_methods:
fuzz_words += 1

if method:
fuzz_words += len(marker_regex.findall(userpass))
fuzz_words += len(set(marker_regex.findall(userpass)))

if len(payload) != fuzz_words:
raise FuzzException(FuzzException.FATAL, "FUZZ words and number of payloads do not match!")
Expand Down

0 comments on commit 5075ea0

Please sign in to comment.