GitXplorerGitXplorer
a

mcdetect

public
58 stars
5 forks
8 issues

Commits

List of commits on branch master.
Unverified
9a9ac794361f71a82cb76b02ae3798e937aea193

Bump to 1.0.6

aagis committed 7 years ago
Verified
b50e2319693ccb9931e6faeb8e487bc30b1e5353

Merge pull request #8 from ashfame/patch-1

aagis committed 7 years ago
Verified
24ef6659de2d248ad69dee78404f05bc49bbc4c4

function needs to be called for url's actual value

aashfame committed 7 years ago
Unverified
f397cfcb3c4bbae07bc3dfd433fbc3a6bbb8c33f

Bump to 1.0.5

aagis committed 7 years ago
Unverified
7bfafa6fb7fae96f12d3adae6065abdacbae52e9

Upgrade dependencies

aagis committed 7 years ago
Unverified
b299b8888837c3d55fa2911e2a5b058cf85c8e37

Bump to 1.0.4

aagis committed 7 years ago

README

The README file for this repository.

mcdetect - catch mixed content issues in the wild

NPM version

mcdetect is a tool that detects mixed content issues with certainty.

mcdetect demo

Motivation

Tools used to catch mixed content issues often rely on parsing the DOM to determine if insecure content will be loaded in a specific page. Consequently they may report false negatives since not all such issues can be detected statically.

mcdetect can determine with absolute certainty if any mixed content errors or warnings actually occur on a page. It does this by visiting the pages and evaluating their Javascript like a regular browser would do. In other words, it does not report false negatives.

It does this by leveraging Headless Chrome that shipped with Chrome 59 and the DevTools Protocol.

Requirements

  • Node 7.6.0 or later

Installation

$ npm install -g mcdetect

Usage

Checking a single target page:

$ mcdetect https://example.com https://google.com

Checking multiple targets (if no protocol is specified, it is assumed to be "https://"):

$ mcdetect example.com google.com

Multiple targets can also be given via a config file:

$ cat my_urls.json
{
  "targets": [
    "googlesamples.github.io/web-fundamentals/fundamentals/security/prevent-mixed-content/xmlhttprequest-example.html",
    "googlesamples.github.io/web-fundamentals/fundamentals/security/prevent-mixed-content/passive-mixed-content.html"
  ]
}

$ mcdetect --config my_urls.json

For more usage examples and options see mcdetect --help.

TODO

  • Add scraping mode (with max depth)
  • More output formats (eg. json, csv, pdf)
  • error handling (modes: exit on error, ignore errors, report errors)
  • interactive mode
  • follow redirects
  • read targets from stdin

License

mcdetect is licensed under MIT. See LICENSE.