sensepost / gowitness

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

report generation doesnt permit specifying destination dir/name #39

Closed Viss closed 4 years ago

Viss commented 4 years ago

./gowitness report generate -D test.db -d /tmp/test/asdfasdf/

will generate an html report and put it in the current working directory, and not place the report in the designated dir based on the cmdline. this is problematic for automation when screenshotting multiple domains using a wrapper script. Also it appears you cant give the report a name other than 'report-0.html', which is also problematic if you're screenshotting several dozen or several hundred domains and each domain needs to have its own report.

skluthe commented 4 years ago

You want to use -f to specify the file to output.

leonjza commented 4 years ago

I just added logic to effectively disable chunking should one want a single report. Just set -c 0. With -n you can control the file name.