Skip to content
Reference client which syncs victims-cve-db to a local database
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
requirements.txt
victims-sync-client

README.md

victims-reference-sync-client

Example of a client which syncs victims-cve-db content into a local database for usage by a scanner.

Install

Install the requirements:

  • python3-GitPython.noarch
  • python3-sqlalchemy
  • python3-PyYAML

or use pip:

$ pip install -r requirements.txt

Usage

Help

usage: victims-sync-client [-h] [-d] [-b BASE_PATH] [--db DB] {sync} ...

positional arguments:
  {sync}                sub-command help
    sync                Sync from the remote database

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug
  -b BASE_PATH, --base-path BASE_PATH
  --db DB               Database URI to store data in

Example

$ ./victims-sync-client -b /tmp/ sync
$ ls -la test.db 
-rw-r--r--. 1 steve steve 151552 Jan 25 10:19 test.db
$ ./victims-sync-client -b /tmp/ sync
No change needed
$ sqlite3 ./test.db "SELECT COUNT(*) from entries;"
168
$
You can’t perform that action at this time.