https://github.com/chandanbn/cvss
CVSS (Common Vulnerability Scoring System) Calculator CVSSv3.1
https://github.com/chandanbn/cvss
calculator cvss cvssv3
Last synced: 15 days ago
JSON representation
CVSS (Common Vulnerability Scoring System) Calculator CVSSv3.1
- Host: GitHub
- URL: https://github.com/chandanbn/cvss
- Owner: chandanbn
- Created: 2015-06-16T14:27:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T20:57:27.000Z (almost 5 years ago)
- Last Synced: 2023-10-26T12:03:24.816Z (almost 2 years ago)
- Topics: calculator, cvss, cvssv3
- Language: JavaScript
- Homepage: http://cvssjs.github.io/
- Size: 116 KB
- Stars: 46
- Watchers: 3
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#CVSSjs
CVSS (Common Vulnerability Scoring System) Calculator
CVSSjs Version 0.3.1 beta
Usage:
//include the cvss.js script
craete an HTML element with an id for eg.,
// create a new instance of CVSS calculator:
var c = new CVSS("cvssboard");// create a new instance of CVSS calculator with some event handler callbacks
var c = new CVSS("cvssboard", {
onchange: function() {....} //optional
onsubmit: function() {....} //optional
}
// set a vector
c.set('CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L');
// it is also backwards compatible with CVSS v2 vectors,
// buts only sets the parameters that can be set without ambiguity.
c.set('AV:L/AC:L/Au:N/C:P/I:P/A:C');
//get the value
c.get() returns an object like:
{
score: 4.3,
vector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L'
}Copyright (c) 2015-2019, Chandan B.N.
Copyright (c) 2019, FIRST.ORG, INC