๐ Convert URLs to images using headless Chrome, Puppeteer, & Docker
I often need to investigate suspicious URLs/hyperlinks, but visiting them directly from my machine could lead to compromise (e.g. malware infections, drive-by downloads ...etc).
I could potentially visit the suspicious resources inside virtual machines, but this method seems slow, clunky, and bloated for this particular use-case.
This project, inspired by similar ones, relies on a small javascript file to interface with puppeteer.
In simple terms, chrome-snapper
uses headless Chrome in a Docker container to visit any URL supplied by the user, take a full-page screenshot of the rendered URL. Any malware or drive-by downloads vanish along with the container when it terminates.
$ docker build -t chrome-snapper -f Dockerfile . # build the image
$ docker run --rm -v $(pwd):/screenshot chrome-snapper <URL>
- Chromeshot - Screenshot websites using headless Chrome and Docker.
- chrome-headless-screenshots - Using headless Chrome as an automated screenshot tool.
- EyeWitness - EyeWitness is designed to take screenshots of websites, provide some server header info, and identify default credentials if possible.
MIT ยฉ 2017 Peter Benjamin