A package for parsing, representing, and filtering NVD data.
Project description
nvdutils
A package for parsing, representing, and filtering NVD data.
Setup
$ mkdir ~/.nvdutils
$ cd ~/.nvdutils
# Data for the JSONFeedsLoader
$ git clone https://github.com/fkie-cad/nvd-json-data-feeds.git
Usage
from nvdutils.core.loaders.json_loader import JSONFeedsLoader
from nvdutils.types.options import CVEOptions
cve_options = CVEOptions()
cve_options.cwe_options.cwe_id = 'CWE-79'
cve_options.cwe_options.has_cwe = True
cve_options.cwe_options.in_secondary = False
cve_options.cwe_options.is_single = True
cve_options.cvss_options.has_v3 = True
cve_options.config_options.is_single_vuln_product = True
cve_options.desc_options.is_single_component = True
cve_options.desc_options.is_single_vuln = True
# https://github.com/fkie-cad/nvd-json-data-feeds
loader = JSONFeedsLoader(data_path='/path/to/nvd-json-data-feeds', options=cve_options,
verbose=True)
loader.load()
print(len(loader))
cve = JSONFeedsLoader.load_cve('/path/to/CVE-2019-0001.json')
print(cve)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nvdutils-0.2.1.tar.gz
(12.7 kB
view details)
Built Distribution
nvdutils-0.2.1-py3-none-any.whl
(13.6 kB
view details)
File details
Details for the file nvdutils-0.2.1.tar.gz
.
File metadata
- Download URL: nvdutils-0.2.1.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 038d9a242d52e549cec64ee05ae54a7e9be439190dd893ef9a1bb6cdab256a57 |
|
MD5 | 6acc3fe45f49920ccd8817b464ce70bf |
|
BLAKE2b-256 | 5be8f5b04dcb7d9a58498c8c7f6afb17c1f583d9e8378898ccb899ac936d9c66 |
File details
Details for the file nvdutils-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: nvdutils-0.2.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a54ffb0dfac956d8256a95352c50b3f7946695d854f04cf2a19070020070e0 |
|
MD5 | 5e83f8c7f818b65a490bb290ed6ab536 |
|
BLAKE2b-256 | d7b2e02ee53c0b42914d0f0919e27671529422e41a2e6cf1a21a29ffa17c810f |