Benjamin Bouillé bio photo

Benjamin Bouillé

IT consultant

Email Twitter Google+ LinkedIn Github Stackoverflow

Assuming all the requirements must be installed before installing ‘cve-search’ on OSx 10.11.2.

REQUIREMENTS

$ brew install mongodb --with-openssl
$ brew install redis

Configuration

Create folder for database

$ sudo mkdir /data
$ sudo mkdir /data/db

Set rights to folder dedicated to database

$ sudo chown snoop:staff /data/db

Installation

Get CVE search project

$ git clone https://github.com/cve-search/cve-search.git
cd cve-search

Update the dependencies with pip3

$ sudo pip3 install -r requirements.txt

Start Redis server

$ redis-server /usr/local/etc/redis.conf

Start MongoDB

$ mongod

Populate database

$ ./db_mgmt.py -p
Database population started

Update CPE dictionary

$ ./db_mgmt_cpe_dictionary.py
Preparing [##################################################] 107349/107349

Update CVE search DB

$ ./db_updater.py -c
Preparing [##################################################] 56/56
Not modified