sensepost / gowitness

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

Screenshot timeout (handling alert()) #71

Closed JoshuaMart closed 3 years ago

JoshuaMart commented 3 years ago

Hello, Thanks for your tools, the new features are very interesting. However, I encounter a problem, it sometimes happens that the screenshot capture remains blocked (for example on a site that displays a popup like alertbox).

If GoWitness is launched in a script, the execution of the script is blocked.

Is it possible to add a default timeout or to be able to set this option?

Thank's, Jomar

leonjza commented 3 years ago

Looks like there is a way to handle alert's as described here. We could implement HandleJavaScriptDialog as shown here.

JoshuaMart commented 3 years ago

Seem's ok, thank's @Serizao