NIST::NVD::Update - Query and Update the NVD database
Version 1.02.01
use NIST::NVD::Update; # use convert_nvdcve to generate these files from the XML dumps: # http://nvd.nist.gov/download.cfm my $u = NIST::NVD::Update->new( store => $some_store, %args );
# See NIST::NVD::Storage::DB_File or NIST::NVD::Storage::SQLite3 for # an example store implementation my $NVD_Updater = NIST::NVD::Update->new( store => $store_type, %args );
my $result = put_cve_idx_cpe ( $cpe_urn, $cve_list )
my $result = update_websec_idx_cpe ();
my $result = put_cwe_idx_cpe ( $cpe_urn, $cwe_id )
my $result = put_cwe_idx_cve ( { NVD_ID0 => $data_about_NVD_ID[0], NVD_ID1 => $data_about_NVD_ID[1], # ... "NVD_ID$N" => $data_about_NVD_ID[$N], } )
my $result = put_cpe ( $cpe_urn )
my $N = lots(); my $result = put_nvd_entries ( { NVD_ID0 => $data_about_NVD_ID[0], NVD_ID1 => $data_about_NVD_ID[1], # ... "NVD_ID$N" => $data_about_NVD_ID[$N], } )
$result = $self->put_cwe( cwe_id => 'CWE-42', cwe_dump => $cwe_dump );
$result = $self->commit($commit_buffer_name);
my $N = lots(); my $result = put_cwe_data ( { CWE_ID0 => $data_about_CWE_ID[0], CWE_ID1 => $data_about_CWE_ID[1], # ... "CWE_ID$N" => $data_about_CWE_ID[$N], } )
C.J. Collier, <cjac at google.com>
<cjac at google.com>
Copyright (C) 2012 C.J. Adams-Collier Copyright (C) 2011,2012 F5 Networks, Inc Copyright (C) 2013 Washington State Guard Association Copyright (C) 2022 Google, LLC
CVE(r) and CWE(tm) are marks of The MITRE Corporation and used here with permission. The information in CVE and CWE are copyright of The MITRE Corporation and also used here with permission.
Please include links for CVE(r) <http://cve.mitre.org/> and CWE(tm) <http://cwe.mitre.org/> in all reproductions of these materials.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install NIST::NVD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NIST::NVD
CPAN shell
perl -MCPAN -e shell install NIST::NVD
For more information on module installation, please visit the detailed CPAN module installation guide.