Skip to content

feat(cli): Add --protocol-report option for payload statistics#62

Open
vedantb7 wants to merge 1 commit intoswisskyrepo:masterfrom
vedantb7:feat-protocol-report
Open

feat(cli): Add --protocol-report option for payload statistics#62
vedantb7 wants to merge 1 commit intoswisskyrepo:masterfrom
vedantb7:feat-protocol-report

Conversation

@vedantb7
Copy link

@vedantb7 vedantb7 commented Oct 2, 2025

Hacktoberfest 2025 Contribution: New Feature

This PR introduces the --protocol-report CLI option to provide valuable analytical and debugging data after a fuzzer run completes. This contribution aims to deliver a requested new feature and aligns with the goals of Hacktoberfest.

Why this is useful:
When running a full scan, it can be difficult to tell exactly which protocols (e.g., gopher, dict, http, file) were successfully generated and attempted. This feature provides a clean, summarized report showing the count and percentage usage for every unique protocol.

Implementation Details:

  1. Added the --protocol-report argument to the main CLI.
  2. Modified the Requester class (core/requester.py) to accept and update a counter dictionary (protocol_counts) before executing each request.
  3. Added the print_protocol_report method to the SSRF class (core/ssrf.py) to display the final statistics when the flag is present.

This is a quality-of-life feature that improves the reliability and observability of the tool's execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant