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

Added implementation for issue 447 #460

Merged
merged 2 commits into from
Jun 4, 2023
Merged

Conversation

maik-s
Copy link
Contributor

@maik-s maik-s commented May 30, 2023

This pull request implements a solution for #447

Two new command line options are introduced:

-or, -omit-raw                    omit raw requests/responses from output
-ob, -omit-body                   omit response body from output

The following data illustrates how much space these options save:

4,6M Mai 30 13:34 /tmp/projectdiscovery.io.json
2,3M Mai 30 13:36 /tmp/projectdiscovery.io-omit-body.json
2,3M Mai 30 13:36 /tmp/projectdiscovery.io-omit-raw.json
4,2K Mai 30 13:36 /tmp/projectdiscovery.io-omit-raw-omit-body.json

Using either one of the options roughly reduces the output size to half of the complete output file.
When using both command line options, only the meta data are left, which are useful for further processing.

Two new command line options are introduced:
   -or, -omit-raw                    omit raw requests/responses from output
   -ob, -omit-body                   omit response body from output
@ehsandeep ehsandeep changed the base branch from main to dev May 30, 2023 13:44
@ehsandeep ehsandeep linked an issue Jun 3, 2023 that may be closed by this pull request
@ehsandeep ehsandeep changed the title Added implementation for issue https://github.com/projectdiscovery/ka… Added implementation for issue 447 Jun 4, 2023
Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @maik-s for adding these options.

@ehsandeep ehsandeep merged commit 4e4124c into projectdiscovery:dev Jun 4, 2023
@ehsandeep ehsandeep added the Type: Enhancement Most issues will probably ask for additions or changes. label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customizable json output to reduce file size / Omit raw / body
2 participants