feat(cli): Add --protocol-report option for payload statistics#62
Open
vedantb7 wants to merge 1 commit intoswisskyrepo:masterfrom
Open
feat(cli): Add --protocol-report option for payload statistics#62vedantb7 wants to merge 1 commit intoswisskyrepo:masterfrom
vedantb7 wants to merge 1 commit intoswisskyrepo:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hacktoberfest 2025 Contribution: New Feature
This PR introduces the
--protocol-reportCLI 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:
--protocol-reportargument to the main CLI.Requesterclass (core/requester.py) to accept and update a counter dictionary (protocol_counts) before executing each request.print_protocol_reportmethod to theSSRFclass (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.