项目作者: cvssjs

项目描述 :
Illustrated CVSS v3.1 Base Score Calculator
高级语言: JavaScript
项目地址: git://github.com/cvssjs/cvssjs.github.io.git
创建时间: 2017-10-12T17:59:20Z
项目社区:https://github.com/cvssjs/cvssjs.github.io

开源协议:

下载


CVSSjs

CVSS (Common Vulnerability Scoring System) Calculator

Standalone Calculator

CVSSjs Version 0.3.1 beta

Usage:

  1. //include the cvss.js script
  2. <script src="http://cvssjs.github.io/cvssjs/cvss.js"></script>
  3. craete an HTML element with an id for eg.,
  4. <div id="cvssboard"></div>
  5. // create a new instance of CVSS calculator:
  6. var c = new CVSS("cvssboard");
  7. // create a new instance of CVSS calculator with some event handler callbacks
  8. var c = new CVSS("cvssboard", {
  9. onchange: function() {....} //optional
  10. onsubmit: function() {....} //optional
  11. }
  12. // set a vector
  13. c.set('CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L');
  14. // it is also backwards compatible with CVSS v2 vectors,
  15. // buts only sets the parameters that can be set without ambiguity.
  16. c.set('AV:L/AC:L/Au:N/C:P/I:P/A:C');
  17. //get the value
  18. c.get() returns an object like:
  19. {
  20. score: 4.3,
  21. vector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L'
  22. }

Copyright (c) 2015-2019, Chandan B.N.

Copyright (c) 2019, FIRST.ORG, INC