mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-18 01:27:11 +01:00
Added page to site that documents how to take daily snapshots of the NVD,
and run D-C cli against those snapshots.
This commit is contained in:
11
src/site/resources/general/dep-check-date.sh
Executable file
11
src/site/resources/general/dep-check-date.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
CLI_LOCATION=~/.local/dependency-check-1.2.11
|
||||
CLI_SCRIPT=$CLI_LOCATION/bin/dependency-check.sh
|
||||
NVD_PATH=$1/`date -I -d $2`
|
||||
NVD=file://$NVD_PATH
|
||||
shift 2 # We've used the first two params. The rest go to CLI_SCRIPT.
|
||||
$CLI_SCRIPT --cveUrl20Base $NVD/nvdcve-2.0-%d.xml.gz \
|
||||
--cveUrl12Base $NVD/nvdcve-%d.xml.gz \
|
||||
--cveUrl20Modified $NVD/nvdcve-2.0-Modified.xml.gz \
|
||||
--cveUrl12Modified $NVD/nvdcve-Modified.xml.gz \
|
||||
--data $NVD_PATH $@
|
||||
5
src/site/resources/general/nvd_download.sh
Executable file
5
src/site/resources/general/nvd_download.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
NVD_ROOT=$1/`date -I`
|
||||
JAR_PATH=$2/nist-data-mirror-1.0.0.jar
|
||||
java -jar $JAR_PATH $NVD_ROOT
|
||||
rm $NVD_ROOT/*.xml # D-C works directly with .gz files anyway.
|
||||
Reference in New Issue
Block a user