sensepost / gowitness

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

Full Size Screenshots #19

Closed abssimon closed 3 years ago

abssimon commented 5 years ago

Hello,

I try include the "--fullPage" flag for chrome, instead of resolution. But with no success. This is very useful when you have pages with different lengths. Long product lists etc.

I would be very grateful for any help.

Best Regards Askan

leonjza commented 4 years ago

I can't seem to find the cli flag for this. Could you point me to some documentation perhaps?

austinginder commented 4 years ago

I think you need to trick headless Chrome to pull this off. See this example: https://medium.com/@dschnr/using-headless-chrome-as-an-automated-screenshot-tool-4b07dffba79a. They are basically measuring the full height of the rendered page then adjusting Emulation.setVisibleSize accordingly.

leonjza commented 3 years ago

V2 is getting it! 🎉

thanh-manci commented 3 years ago

@leonjza its should be --fullpage not --fullPage

leonjza commented 3 years ago

@leonjza its should be --fullpage not --fullPage

What do you mean? https://github.com/sensepost/gowitness/commit/6cb4915d29fc047f6f9bfde5ef2fe665302188a3#diff-ab967ab1a2f3a1b769106eeb7bfe892ef0e81d1d27811fa15be08e6749feee1fR67

thanh-manci commented 3 years ago

@austinginder @leonjza @AskanSimon @marcpeiser Hello! how to use fullpage with report server? what's the name of parameter? let's show me. very thank!

leonjza commented 3 years ago

The report server does not support this yet. It is only a CLI option.

thanh-manci commented 3 years ago

@leonjza so the only thing I can do is build a server in conjunction with cli. have any way to do that?

thanh-manci commented 3 years ago

I saw in cmd/root.go:66 rootCmd.PersistentFlags().BoolVarP(&chrm.FullPage, "fullpage", "F", false, "take fullpage screenshots") I just set true in that. its working.