mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 00:46:27 -04:00
and the Japan Vulnerability Notes (JVN). NVD and JVN contain security vulnerabilities according to their CVE identifiers, including exhaustive information and a risk score. The local copy is generated in sqlite format, and the tool has a server mode for easy querying. WWW: https://github.com/kotakanbe/go-cve-dictionary/ PR: 220561 Submitted by: Alexandru Ciobanu <iscandr@gmail.com> (maintainer) Reviewed by: matthew (mentor), koobs, mat Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D11745
29 lines
899 B
Go
29 lines
899 B
Go
--- commands/fetchnvd.go.orig 2017-06-26 10:39:59 UTC
|
|
+++ commands/fetchnvd.go
|
|
@@ -3,7 +3,6 @@ package commands
|
|
import (
|
|
"context"
|
|
"flag"
|
|
- "os"
|
|
"strconv"
|
|
"time"
|
|
|
|
@@ -43,7 +42,7 @@ func (*FetchNvdCmd) Usage() string {
|
|
[-last2y]
|
|
[-years] 2015 2016 ...
|
|
[-dbtype=mysql|postgres|sqlite3|redis]
|
|
- [-dbpath=$PWD/cve.sqlite3 or connection string]
|
|
+ [-dbpath=/var/db/vuls/cve.sqlite3 or connection string]
|
|
[-http-proxy=http://192.168.0.1:8080]
|
|
[-debug]
|
|
[-debug-sql]
|
|
@@ -65,8 +64,7 @@ func (p *FetchNvdCmd) SetFlags(f *flag.F
|
|
defaultLogDir := util.GetDefaultLogDir()
|
|
f.StringVar(&p.logDir, "log-dir", defaultLogDir, "/path/to/log")
|
|
|
|
- pwd := os.Getenv("PWD")
|
|
- f.StringVar(&p.dbpath, "dbpath", pwd+"/cve.sqlite3",
|
|
+ f.StringVar(&p.dbpath, "dbpath", "/var/db/vuls/cve.sqlite3",
|
|
"/path/to/sqlite3 or SQL connection string")
|
|
|
|
f.StringVar(&p.dbtype, "dbtype", "sqlite3",
|