sensepost / gowitness

🔍 gowitness - a golang, web screenshot utility using Chrome Headless
GNU General Public License v3.0
2.87k stars 329 forks source link

Disable taking screenshots by HTTP response code #133

Closed retpoline closed 1 year ago

retpoline commented 2 years ago

A list of hosts may return 404s and other status code nor worthy of creating a blank screenshot.

Can gowitness have a flag to ignore certain stat codes, such as 404 where there is no content to screenshot instead of filling up the screenshot folder with blank images?

Thanks for your time!

leonjza commented 2 years ago

I thought we had this already but realized we don't. This is definitely something simple to add! Thanks for the suggestion.

nickspring commented 2 years ago

I'll work on this.

s0alqasim1d commented 1 year ago

What happened to this?

I second #140 where you could specify codes to exclude instead of whitelisting just 200 OK as per the open PR. Or to be more flexible, there can be include and exclude. What do you think?

leonjza commented 1 year ago

Implemented here, making it more versatile for more more than one response code.