Skip to content
forked from xytan0056/cvssv3

A Common Vulnerability Scoring System version 3.0 implementation for golang.

License

Notifications You must be signed in to change notification settings

klustair/cvssv3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bunji2/cvssv3

A Common Vulnerability Scoring System Version 3.0 (CVSSv3) implementation for golang.

Inspired by "go-cvss" ( https://github.com/umisama/go-cvss ), but implementated in different way.

Installation

go get github.com/bunji2/cvssv3

Usage

import (
    "fmt"
    "github.com/bunji2/cvssv3"
)

func sample() {
    v, err := cvssv3.ParseVector(
        "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N")
    if err != nil {
        panic(err)
    }
    fmt.Printf("CVSS String: %s \n", v.String())
    fmt.Printf("Base Score: %4.1f \n", v.BaseScore())
    fmt.Printf("Temporal Score: %4.1f \n", v.TemporalScore())
    fmt.Printf("Environmental Score: %4.1f \n", v.EnvironmentalScore())
}

Document

Reference

License

under the MIT License

by Bunji2

About

A Common Vulnerability Scoring System version 3.0 implementation for golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%