jvn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const URL = "http://jvndb.jvn.jp/myjvn"

URL ... JVN URL

Variables

This section is empty.

Functions

This section is empty.

Types

type CpeList

type CpeList struct {
	CpeItem   []cpeItem `xml:"cpe-item"`
	Generator generator `xml:"generator"`
}

CpeList ... CPE List

type Cvss

type Cvss struct {
	Score    string `xml:"score,attr"`
	Severity string `xml:"severity,attr"`
	Vector   string `xml:"vector,attr"`
	Version  string `xml:"version,attr"`
}

Cvss ... CVSS

type Item

type Item struct {
	About       string       `xml:"about,attr"`
	Title       string       `xml:"title"`
	Link        string       `xml:"link"`
	Description string       `xml:"description"`
	Publisher   string       `xml:"publisher"`
	Creator     string       `xml:"creator"`
	Identifier  string       `xml:"identifier"`
	References  []references `xml:"references"`
	CpeItem     []cpeItem    `xml:"cpe-item"`
	Cvss        Cvss         `xml:"cvss"`
	Date        string       `xml:"date"`
	Issued      string       `xml:"issued"`
	Modified    string       `xml:"modified"`
}

Item ... http://jvndb.jvn.jp/apis/getVulnOverviewList_api.html

func FetchCVEs

func FetchCVEs() (items []Item, err error)

FetchCVEs Fetch vulnerabilty information from JVN http://jvndb.jvn.jp/apis/getVulnOverviewList_api.html TODO refresh after updatedAt in DB

type Result

type Result struct {
	CpeList    CpeList    `xml:"cpe-list"`
	VendorInfo VendorInfo `xml:"VendorInfo"`
	Items      []Item     `xml:"item"`
	Vulinfo    Vulinfo    `xml:"Vulinfo"`
	Status     status     `xml:"Status"`
	Errors     []error
}

Result ... Result data

func Request

func Request(
	urlValues map[string]string,
	concurrentMax int,
	httpProxyIfAny ...string,
) (result []*Result, err error)

Request ... Fetch CVE vulunerability informatino from JVN

type VendorInfo

type VendorInfo struct {
	Lang    string   `xml:"xml:lang,attr"`
	Vendors []vendor `xml:"Vendor"`
}

VendorInfo Vendor Information

type Vulinfo

type Vulinfo struct {
	VulinfoID   string      `xml:"VulinfoID"`
	VulinfoData vulinfoData `xml:"VulinfoData"`
}

Vulinfo ... VulnInfo

Jump to

Keyboard shortcuts

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