Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Catch mixed content issues in the wild

License

NotificationsYou must be signed in to change notification settings

agis/mcdetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version

mcdetect is a tool that detectsmixed content issueswith certainty.

mcdetect demo

Motivation

Tools used to catch mixed content issues often relyon parsing the DOM to determine if insecure contentwill be loaded in a specificpage. Consequently they may report false negatives since not all such issuescan be detected statically.

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

It does this by leveragingHeadless Chromethat shipped with Chrome 59 and theDevTools 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 seemcdetect --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. SeeLICENSE.


[8]ページ先頭

©2009-2025 Movatter.jp