summaryrefslogtreecommitdiff
path: root/security/vuls/files/patch-commands_tui.go
diff options
context:
space:
mode:
authorRichard Gallamore <ultima@FreeBSD.org>2017-07-28 18:28:41 +0000
committerRichard Gallamore <ultima@FreeBSD.org>2017-07-28 18:28:41 +0000
commit82fd28fcab9366845a915b7d09cd809368f12d62 (patch)
tree9b7a0e1abdea3309e8932a78d08f42e6801905b5 /security/vuls/files/patch-commands_tui.go
parentThis is tool to build a local copy of the National Vulnerabilities Database(NVD) (diff)
Vuls is an agentless vulnerability scanner written in golang.
It can scan localhost or remote hosts via SSH. Vuls has a Terminal-Based User Interface(TUI) to display the scan results. Vuls' features include: * scan for vulnerabilitie in Ubuntu, Debian, CentOS, Amazon Linux, RHEL, Oracle Linux, FreeBSD and Raspbian; * scan middleware that are not included in OS package management; * nondestructive testing; * email and slack notification. WWW: https://github.com/future-architect/vuls PR: 220328 Submitted by: Alexandru Ciobanu <iscandr@gmail.com> (maintainer) Reviewed by: matthew (mentor), mat Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D11746
Diffstat (limited to 'security/vuls/files/patch-commands_tui.go')
-rw-r--r--security/vuls/files/patch-commands_tui.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/security/vuls/files/patch-commands_tui.go b/security/vuls/files/patch-commands_tui.go
new file mode 100644
index 000000000000..21c569b7545b
--- /dev/null
+++ b/security/vuls/files/patch-commands_tui.go
@@ -0,0 +1,26 @@
+--- commands/tui.go.orig 2017-06-23 15:51:48 UTC
++++ commands/tui.go
+@@ -94,12 +94,12 @@ func (p *TuiCmd) SetFlags(f *flag.FlagSe
+ "sqlite3",
+ "DB type for fetching CVE dictionary (sqlite3, mysql or postgres)")
+
+- defaultCveDBPath := filepath.Join(wd, "cve.sqlite3")
++ defaultCveDBPath := "/var/db/vuls/cve.sqlite3"
+ f.StringVar(
+ &p.cvedbpath,
+ "cvedb-path",
+ defaultCveDBPath,
+- "/path/to/sqlite3 (For get cve detail from cve.sqlite3)")
++ "/path/to/sqlite3 (For getting CVE details from cve.sqlite3)")
+
+ f.StringVar(
+ &p.cveDictionaryURL,
+@@ -153,7 +153,7 @@ func (p *TuiCmd) Execute(_ context.Conte
+ if p.refreshCve || needToRefreshCve(r) {
+ if c.Conf.CveDBType == "sqlite3" {
+ if _, err := os.Stat(c.Conf.CveDBPath); os.IsNotExist(err) {
+- log.Errorf("SQLite3 DB(CVE-Dictionary) is not exist: %s",
++ log.Errorf("SQLite3 DB(CVE-Dictionary) does not exist: %s",
+ c.Conf.CveDBPath)
+ return subcommands.ExitFailure
+ }