sensepost / gowitness

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

Can't make screenshot of very slow websites #18

Closed abssimon closed 5 years ago

abssimon commented 5 years ago

Hello,

I made a few test, but this chinese websites don't work

./gowitness single --chrome-timeout 100 -u http://www.qry.com/Home.aspx 
ERRO[2019-02-24 15:55:32] Failed to query url                           error="[Get http://www.quippbattery.com/Home.aspx: read tcp 192.168.178.41:35752->222.76.212.44:80: i/o timeout]" url="http://www.quippbattery.com/Home.aspx"
INFO[2019-02-24 15:55:32] Complete                                      run-time=5.266110312s

I think the "Failed to query url" Error comes to early. " --chrome-timeout 100" has no effect.

Thank you, Best Regards Simon

leonjza commented 5 years ago

The --chrome-timeout flag sets the timeout for chrome itself. Try and add the --timeout to affect the initial HTTP connections timeout.

abssimon commented 5 years ago

thank you. --timeout solves the problem!