browsercheck

package module
v0.0.0-...-076a521 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2014 License: MIT Imports: 4 Imported by: 1

README

BrowserCheck

BrowserCheck implements a simple way to check whether a specific browser and installed plugins are outdated and therefore are potentially insecure. The check is performed only using the useragent including the installed plugins, an example is provided in the subdirectory example. This library may e.g. be used to show security warnings before logging in.

Example

An example application is available in the directory example.

Documentation

Documentation is available via GoDoc.

License

The MIT License (MIT)

Copyright (c) 2014 Lukas Reschke

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation

Overview

Browsercheck implements a simple way to check whether a specific browser and installed plugins are outdated. The check is performed only using the useragent including the installed plugins, an example is provided in the subdirectory example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ReadableName      string `xml:"readable-name"` // Readable name which can be shown to the user
	StringRegex       string `xml:"regex"`         // Regex to match the application and the version
	Regex             *regexp.Regexp
	LastSecureVersion string `xml:"last-secure-version"` // Defines the last secure version

	UpdateUrl string `xml:"update-url"` // Link to a document stating how to install the new version
	// contains filtered or unexported fields
}

Defines a single application

func Check

func Check(ua string) []Application

Checks for insecure applications in an UA, returns nil or an list of insecure applications The UA may contain installed plugins, e.g. Adobe Flash

Directories

Path Synopsis
Implements a very simple example of BrowserCheck Can be run with `go run main.go` and accessed via `localhost:8080` with a browser
Implements a very simple example of BrowserCheck Can be run with `go run main.go` and accessed via `localhost:8080` with a browser

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL