Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
/ chrome-snapper Public archive

๐Ÿ™ Convert URLs to images using headless Chrome, Puppeteer, & Docker

License

Notifications You must be signed in to change notification settings

pbnj/chrome-snapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

chrome-snapper

๐Ÿ™ Convert URLs to images using headless Chrome, Puppeteer, & Docker

The Problem

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 Solution

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.

Usage

$ docker build -t chrome-snapper -f Dockerfile . # build the image
$ docker run --rm -v $(pwd):/screenshot chrome-snapper <URL>

Demo

Demo

Related

  • 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.

License

MIT ยฉ 2017 Peter Benjamin

About

๐Ÿ™ Convert URLs to images using headless Chrome, Puppeteer, & Docker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published