nvdsearch

command module
v0.0.0-...-5c8e097 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

nvdsearch - v1.0 - @h0useh3ad

A National Vulnerability Database (NVD) API query tool

Install

Clone from repo

$ go mod init nvdsearch
$ go mod tidy
$ go build

Tested with Go version 1.19.1+

Usage

nvdsearch has multiple options: cpelookup, cveid, product, cpe

$ ./nvdsearch -h
                   _                                _
                  | |                              | |
 _ __  __   __  __| | ___   ___   __ _  _ __   ___ | |__
| '_ \ \ \ / / / _` |/ __| / _ \ / _` || '__| / __|| '_ \
| | | | \ V / | (_| |\__ \|  __/| (_| || |   | (__ | | | |
|_| |_|  \_/   \__,_||___/ \___| \__,_||_|    \___||_| |_|
						@h0useh3ad

Usage of ./nvdsearch:
  -cpe string
    	CPE version 2.3 format (Ex: cpe:2.3:a:progress:moveit_transfer:2023.0.1:*:*:*:*:*:*:*)
  -cpelookup string
    	CPE name lookup for product (Ex: openssl or 'apache 2.4')
  -cveid string
    	CVE ID (Ex: CVE-2023-34362 or 2023-34362)
  -output string
    	Output filename
  -product string
    	Product name
  -vendor string
    	Vendor name
  -version string
    	Product version

product search requires the -vendor -product -version flags

$ ./nvdsearch -vendor apache -product http_server -version 2.4.56

cveidsearch requires the -cveid flag

$ ./nvdsearch -cveid CVE-2023-35708
CPE name lookup

cpelookup requires the -cpelookup flag

$ ./nvdsearch -cpelookup openssl

cpe search requires the -cpe flag (CPE format version 2.3)

$ ./nvdsearch -cpe 'cpe:2.3:a:progress:moveit_transfer:*:*:*:*:*:*:*:*'
Write to CSV

The product, cveid, cpe, and cpelookup options will write to CSV format by providing a filename with the -output flag

$ ./nvdsearch -vendor openssl -product -openssl -version 1.0.2k -output openssl_1.0.2k_cves
$ ./nvdsearch -cpelookup apache -output apache_cpe_lookup

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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