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

New filter: possibility to filter by content type #38

Open
htrgouvea opened this issue Jan 5, 2024 · 0 comments
Open

New filter: possibility to filter by content type #38

htrgouvea opened this issue Jan 5, 2024 · 0 comments

Comments

@htrgouvea
Copy link
Owner

htrgouvea commented Jan 5, 2024

Context:

Filtering requests by content type (Content-Type) is essential for highlighting relevant responses, especially in applications that return multiple formats (e.g., JSON, HTML, etc.). This feature would be particularly useful when fuzzing applications for specific files or formats.

For example, while searching for package.json files using a custom wordlist and the following parameters:

$ ./nozaki.pl -m GET -u $i -w wordlists/test.txt -r 200 --content "version"

Some false positives still occur. These could be significantly reduced by applying a filter specifically for JSON content types.

What is needed to do:

Add a new option (e.g., --filter-content-type) to allow filtering responses based on the Content-Type header value.
Update the output mechanism to display only the responses that match the filter.
Create tests to validate the feature's behavior and update the README.

Definition of Done:

The --filter-content-type option is functional and supports multiple values.
Tests confirm the filter works as expected.
The feature is documented with examples in the README or equivalent documentation.

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

No branches or pull requests

1 participant