sensepost / gowitness

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

Add a feature excute javascript #180

Closed djallalzoldik closed 1 year ago

djallalzoldik commented 1 year ago

Hi ,

This feature will improve using gowitness, which can help you execute javascript code when screenshot, just with argument --js "here create you javascript code"

example:

gowitness single "https://google.com" --js "console.log('your code is run')"

jscode

leonjza commented 1 year ago

Ah this is cool. Will review and merge soonest.

leonjza commented 1 year ago

Thanks for this! I made some small cleanups to prevent running default JS and other smaller styling things here https://github.com/sensepost/gowitness/commit/441b504fb6a6a52b4d914edbaaa34a4285a9b48b.

djallalzoldik commented 1 year ago

I am happy to contribute to the development of gowitness, if there is any other idea, I will inform you, Thank You :):)