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

Export Urls based on status code #63

Closed
jaikishantulswani opened this issue Sep 19, 2020 · 4 comments
Closed

Export Urls based on status code #63

jaikishantulswani opened this issue Sep 19, 2020 · 4 comments

Comments

@jaikishantulswani
Copy link

jaikishantulswani commented Sep 19, 2020

Hi @leonjza Its not an issue but a request to have a feature for importing url's based on particular status code via the report viewer. Like a feature to filter screenshots based on status code and then export the urls to a text file.
Also have an option to increase number of screenshot per page and next button on the top too.

Regards,

@leonjza
Copy link
Member

leonjza commented Sep 19, 2020

hey. for now you can use the report list command with the json output (-j) flag. use it in combination with jq and you should have some pretty great report filtering capabilities.

@leonjza
Copy link
Member

leonjza commented Sep 21, 2020

To be a little more verbose in my answer, here is how you could filter URL's in the report that had an HTTP 200.

gowitness report list -j | jq -r ". | select(.response_code==200) | .final_url"

As for the per_page value in the interactive report viewer, you can just manually modify the query string parameter for now.

@jaikishantulswani
Copy link
Author

@leonjza thank you 👍

@leonjza
Copy link
Member

leonjza commented Jun 10, 2022

Instead of implementing complex filtering logic in gowitness, I've opted to just document the above jq example for those that may need that.

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

No branches or pull requests

2 participants