gowitnessis a website screenshot utility written in Golang, that uses Chrome Headless to generate screenshots of web interfaces using the command line. Both Linux and macOS is supported, with Windows support 'partially working'.
gowitnesscomes from Eyewitness. If you are looking for something with lots of extra features, be sure to check it out along with these other projects.
All you would need is an installation of the latest Google Chrome or Chromium and
gowitnesscan be downloaded using
go get -u github.com/sensepost/gowitnessor using the binaries available for download from the releases page.
Running using docker
To screenshot a page using docker, simply run the following command that would also pull the latest gowitness image:
docker run --rm -it -v $(pwd)/screenshots:/screenshots leonjza/gowitness:latest single --url=https://www.google.com
gowitnessto write your screenshots to, otherwise they will be lost when the container exits. The container is configured with the
/screenshots/directory as the working directory, so the above command mounts a local
If you want to read an nmap file, save it locally into a screenshots directory, and use it with:
docker run --rm -it -v $(pwd)/screenshots:/screenshots leonjza/gowitness:latest nmap -f /screenshots/nmap.xml
docker run --rm -it -v $(pwd)/screenshots:/screenshots leonjza/gowitness:latest -h
A commandline web screenshot and information gathering tool by @leonjza
file Screenshot URLs sourced from a file
help Help about any command
nmap Screenshot services from an Nmap XML file
report Work with gowitness reports
scan Scan a CIDR range and take screenshots along the way
single Take a screenshot of a single URL
version Prints the version of gowitness
Build from source
gowitnessfrom source, follow the following steps:
- Ensure that you have at least golang version 1.13.
- Clone this repository and
go buildto get the
gowitnessbinary for the current machine.
maketo build for all targets. Binaries will be in the
Screenshot a single website
$ gowitness single --url=https://www.google.com/
This should result in a file being created called:
Screenshot a cidr
$ gowitness scan --cidr 192.168.0.0/24 --threads 20
This should result in many
.pngimages in the current directory when complete. This can would also use
20threads and not the default of
Generate a report
$ gowitness report generate
This should result in an
report.htmlfile with a screenshot report.
$ gowitness report generate --sort-perception
This should result in an
report.htmlfile with a screenshot report where screenshots are sorted using perception hashing.
$ gowitness report list
This should list the entries in the