Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: solve the problem of results double calculated. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions waf_benchmark/dumpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ def dump_screen(results: Dict[str, Tuple[Tuple[str, str, str]]],
print("=" * len(f"Attack type: {attack_type}"))
print()

for c in content:
tool_name, payload, http_code = c

total_blocked[tool_name] += 1 if http_code == 403 else 0
total[tool_name] += 1

if str(http_code).startswith("2"):
total_success[tool_name] += 1
success_attacks[tool_name].append(payload)

for tool_name in total.keys():
cols.append([
tool_name,
Expand Down