sensepost / gowitness

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

Server report on custom directory #142

Closed mpgn closed 2 years ago

mpgn commented 2 years ago

Is your feature request related to a problem? Please describe. I have a custom directory with all the screenshot but when I try to run the report feature, the custom directory is not taking in account and the screenshots directory is still used.

Describe the solution you'd like /gowitness-2.4.0-linux-amd64 -P vhost_screen server report The path to get all the screenshot should be on vhost_screen and not /screenshots/

└─$ ./gowitness-2.4.0-linux-amd64 -P vhost_screen server report  
07 Jul 2022 07:43:33 INF db path path=gowitness.sqlite3
07 Jul 2022 07:43:33 INF screenshot path path=vhost_screen
07 Jul 2022 07:43:33 INF server listening address=localhost:7171
[GIN] 2022/07/07 - 07:43:37 | 200 |   10.818721ms |       127.0.0.1 | GET      "/gallery"
[GIN] 2022/07/07 - 07:43:37 | 200 |    1.795967ms |       127.0.0.1 | GET      "/assets/css/tabler.min.css"
[GIN] 2022/07/07 - 07:43:37 | 200 |      84.265µs |       127.0.0.1 | GET      "/assets/js/tabler.min.js"
[GIN] 2022/07/07 - 07:43:37 | 404 |      27.143µs |       127.0.0.1 | GET      "/screenshots/http-10.0.0.1-80.png"
leonjza commented 2 years ago

I just tested this and realised the path you see in the logs is just the HTTP path according to the web server. The on disk path will be correctly set as vhost_screen as in your case, delivering the screenshots from there.

image