sensepost / gowitness

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

Getting error while taking screenshot #213

Open moolakarapaiyan opened 6 months ago

moolakarapaiyan commented 6 months ago

Gowitness works well. Today, I cleaned up the /tmp folder on my Ubuntu machine, and after that, it started giving me errors while taking screenshots

i gave read write permission to /tmp folder

23 Jan 2024 05:12:42 DBG ../../go/pkg/mod/github.com/sensepost/gowitness@v0.0.0-20231219153055-042af5cadcd5/cmd/root.go:35 > debug logging enabed 23 Jan 2024 05:12:42 DBG ../../go/pkg/mod/github.com/sensepost/gowitness@v0.0.0-20231219153055-042af5cadcd5/lib/processor.go:121 > preflighting url=https://example.com/ 23 Jan 2024 05:12:43 INF ../../go/pkg/mod/github.com/sensepost/gowitness@v0.0.0-20231219153055-042af5cadcd5/lib/processor.go:135 > preflight result statuscode=200 title="Example Domain" url=https://example.com/ 23 Jan 2024 05:12:43 DBG ../../go/pkg/mod/github.com/sensepost/gowitness@v0.0.0-20231219153055-042af5cadcd5/lib/processor.go:157 > screenshotting url=https://example.com/ 23 Jan 2024 05:12:43 ERR ../../go/pkg/mod/github.com/sensepost/gowitness@v0.0.0-20231219153055-042af5cadcd5/lib/processor.go:67 > failed to take screenshot error="chrome failed to start:\n[0123/051243.926698:ERROR:command_line_handler.cc(137)] Could not create directory /tmp/chromedp-runner3496925935: No such file or directory (2)\n" 23 Jan 2024 05:12:43 DBG ../../go/pkg/mod/github.com/sensepost/gowitness@v0.0.0-20231219153055-042af5cadcd5/cmd/single.go:58 > failed to witness url error="chrome failed to start:\n[0123/051243.926698:ERROR:command_line_handler.cc(137)] Could not create directory /tmp/chromedp-runner3496925935: No such file or directory (2)\n" url=https://example.com/