cram

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToDbSocket

func ConnectToDbSocket() net.Conn

return the connection the database socket

func CountRowsReturned

func CountRowsReturned(result string) int

get the amount of rows returned by the query

func Entry

func Entry()

func GetCveNum

func GetCveNum() string

func GetCveNums

func GetCveNums() argsArray

func GetDbQuery

func GetDbQuery() string

below are getters for cli args because they are private variables

func GetGui

func GetGui() bool

func GetOss

func GetOss() argsArray

func GetSoftware

func GetSoftware() string

func GetTableName

func GetTableName() string

func GetTotalTimeToFix

func GetTotalTimeToFix(result string) uint16

gets the total time to fix of all vulnerabilities returned by the query

func GetTotalVulnerabilityScore

func GetTotalVulnerabilityScore(result string, rowsCount int) float32

get the total cvss score of all vulnerabilities returned by the query

func InitCliArgs

func InitCliArgs()

cli args are intialized here

func MarkAsSolved

func MarkAsSolved(cveName string)

func QueryDbCve

func QueryDbCve(conn net.Conn, cveNum string) string

takes cve number and returns vulnerability score and time to fix

func QueryDbMultiCve

func QueryDbMultiCve(cves []string) []string

func QueryDbMultiOs

func QueryDbMultiOs(oss []string) []string

func QueryDbOS

func QueryDbOS(conn net.Conn, os string) string

Takes os or software and returns cve number, vulnerability score and time to fix

func SetCveNum

func SetCveNum(cve string)

func SetCveNums

func SetCveNums(cves []string)

func SetSoftware

func SetSoftware(os string)

Below are setters for certain variables that are command line arguments, this is the easiest way to get the gui to work without too much refactoring

func SetSoftwares

func SetSoftwares(oss []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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