sensepost / gowitness

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

Screenshot saved to wrong location #182

Closed maik-s closed 1 year ago

maik-s commented 1 year ago

Describe the bug

When using gowitness to save the screenshot to a file, you specify the filepath via the command line argument -o

Example:

gowitness -F single -o /tmp/example.com.png https://example.com

However, gowitness always adds a suffix (pdf or png) to the filename, even though it is already present within the given filepath. Hence, the above command saves the file to /tmp/example.com.png.png Therefore, the output file is not at the expected location!

To Reproduce Steps to reproduce the behavior: See my above example

Expected behavior The file is to be saved at the given location, which is /tmp/example.com.png

Version Information:

git hash: 9e88f8c go version: go1.20.1_linux/amd64

maik-s commented 1 year ago

Fixed with merge of pull request #183 https://github.com/sensepost/gowitness/commit/7719300525053fe62b87bcc63f04125c895a1bcb