Skip to content

Instantly share code, notes, and snippets.

View kamaljoshi's full-sized avatar

Kamal kamaljoshi

View GitHub Profile
@kamaljoshi
kamaljoshi / check_cloudflare.rb
Last active May 27, 2017 21:57
This script collects domains from your Chrome history for the default profile and checks to see if they are being proxied through Cloudflare by checking presence of a header.
# Except sqlite3 all the libraries are standard that should be present with a Ruby installation.
# If you don't have sqlite3 installed. Use `gem install sqlite3`
require 'fileutils'
require 'sqlite3'
require 'uri'
require 'net/http'
require 'set'
require 'thread'