Skip to content

Unable to take screenshots of a list of URLs #270

@atemporalzen

Description

@atemporalzen

So this is the command i use to take screenshots from a file. But I am faced with this bug

gowitness scan file -f urls.txt --chrome-path /usr/bin/google-chrome --write-db -p 443 --no-http -D --log-scan-errors

Here is the output

2025/01/26 14:28:18 DEBU <cmd/root.go:28> debug logging enabled
2025/01/26 14:28:18 DEBU <cmd/scan.go:72> scanning driver started driver=chromedp
2025/01/26 14:28:18 DEBU <runner/runner.go:47> final screenshot path screenshot-path=/root/screenshots
2025/01/26 14:28:20 DEBU <cmd/scan_file.go:57> starting file scanning file=urls.txt
2025/01/26 14:28:20 DEBU <drivers/chromedp.go:124> witnessing 👀 target=https://example.com:443
2025/01/26 14:28:20 DEBU <drivers/chromedp.go:124> witnessing 👀 target=https://example2.com443
2025/01/26 14:28:20 DEBU <drivers/chromedp.go:124> witnessing 👀 target=https://example3.com:443
2025/01/26 14:28:20 DEBU <drivers/chromedp.go:124> witnessing 👀 target=https://example4.com:443
2025/01/26 14:28:37 ERRO <runner/runner.go:153> failed to witness target target=https://example.com:443 err="error enabling network tracking: could not dial \"ws://127.0.0.1:45723/devtools/browser/f94035f7-da69-405c-8715-eee38598d2f1\": context deadline exceeded"
2025/01/26 14:28:37 ERRO <runner/runner.go:153> failed to witness target target=https://example2.com:443 err="error enabling network tracking: could not dial \"ws://127.0.0.1:43141/devtools/browser/1ae8dd08-756e-49b9-ac2d-5b7bfa8ce19a\": context deadline exceeded"
2025/01/26 14:28:37 ERRO <runner/runner.go:153> failed to witness target target=https://example3.com:443 err="error enabling network tracking: could not dial \"ws://127.0.0.1:34739/devtools/browser/8ae6aee4-cb44-4cc8-b761-a2d79b74ca3d\": context deadline exceeded"
2025/01/26 14:28:37 ERRO <runner/runner.go:153> failed to witness target target=https://example4.com:443 err="error enabling network tracking: could not dial \"ws://127.0.0.1:45673/devtools/browser/edc1a464-571c-4409-9206-150fc2ae433b\": context deadline exceeded"

The single screenshot works fine

gowitness scan single --url https://example.com -D
2025/01/26 14:35:14 DEBU <cmd/root.go:28> debug logging enabled
2025/01/26 14:35:14 DEBU <cmd/scan.go:72> scanning driver started driver=chromedp
2025/01/26 14:35:14 WARN <cmd/scan.go:117> no writers have been configured. to persist probe results, add writers using --write-* flags
2025/01/26 14:35:14 DEBU <runner/runner.go:47> final screenshot path screenshot-path=/root/screenshots
2025/01/26 14:35:15 DEBU <drivers/chromedp.go:124> witnessing 👀 target=https://example.com
2025/01/26 14:35:29 INFO <runner/runner.go:171> result 🤖 target=https://example.com status-code=200 title="Example Domain" have-screenshot=true
2025/01/26 14:35:29 DEBU <drivers/chromedp.go:475> closing browser allocation context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions