sensepost / gowitness

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

blank pages and following window.location #216

Closed Rubyer77 closed 4 months ago

Rubyer77 commented 4 months ago

Describe the bug

when gowitness single -o test.png https://acquisify.ca

I get in the db something like:

<script>window.onload=function(){window.location.href="/lander"}</script>

which is a js redirect, but gowitness seems to stop there and so I get a blank screenshot

I am not sure if gowitness refuses to execute the JS?

the desired end result should be in this case a screenshot of a GoDaddy parking page

Rubyer77 commented 4 months ago

ok It works when adding --delay. I now realize that the browser consider the page loaded before continuing on the js redirect. It's ok default bevahior but what would be really cool would if gowitness could detect that the screenshot is one-color and retry with a delay