gowitness icon indicating copy to clipboard operation
gowitness copied to clipboard

Disable taking screenshots by HTTP response code

Open retpoline opened this issue 2 years ago • 2 comments

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!

retpoline avatar Apr 12 '22 14:04 retpoline

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

leonjza avatar Apr 12 '22 14:04 leonjza

I'll work on this.

nickspring avatar Jun 19 '22 18:06 nickspring

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?

s0alqasim1d avatar Feb 11 '23 11:02 s0alqasim1d

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

leonjza avatar May 07 '23 14:05 leonjza