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.pngTherefore, 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:
OS: Ubuntu 22.04
gowitness:
gowitness: 2.4.2
git hash: 9e88f8c
go version: go1.20.1_linux/amd64
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