Assuming all the requirements must be installed before installing ‘cve-search’ on OSx 10.11.2.
REQUIREMENTS
-
Python 3.2 : see http://www.macobserver.com/tmo/article/how-to-upgrade-your-mac-to-python-
-
Homebrew (a package manager on Osx to install other dependencies) : see http://brew.sh
-
MongoDB with TLS support, see https://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/ and run this command :
$ brew install mongodb --with-openssl
- Redis server, see https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298#.vxaml7fqv and run this command :
$ 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
Run cve-search
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