JoeSouthan / Canvas-Screenshot

Sinatra/JS script to take "screenshots" of a web page

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Sinatra/JS based script to take "screenshots" of the current page.

Due to XSS, we have to proxy requests to external images before we can export the canvas, this example does just that.

This a prototype only!

I take no responsibility for any damage done to your server.

Perhaps write a whitelist to convert the images so you don't get stung by exploits.

Run:

ruby convert.rb

and navigate to http://localhost:4567/ to try it out.

Uses jQuery, HTML2Canvas, Bootstrap and Sinatra.

About

Sinatra/JS script to take "screenshots" of a web page


Languages

Language:JavaScript 99.4%Language:Ruby 0.6%