This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Build Guide
Jerome Leonard edited this page Feb 5, 2017
·
1 revision
This document is a step-by-step guide to build TheHive from sources.
Few softwares are required to download and build Hippocampe.
echo 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main' | sudo tee -a /etc/apt/sources.list.d/java.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer
Version 5.2 of Elasticsearch is required.
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
sudo apt-get update && sudo apt-get install elasticsearch
Before run Elasticsearch, secure it adding the following line in /etc/elasticsearch/elasticsearch.yml
:
network.host: 127.0.0.1
and start the service :
sudo service elasticsearch start
sudo apt-get install git
sudo pip install elasticsearch Configparser netaddr flask python-dateutil apscheduler requests
Install nodejs and bower, mandatory to build Hippocampe:
wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install nodejs
sudo npm install -g bower
We decided to install and build it in /opt
but you can choose your own directory.
cd /opt
git clone https://github.com/CERT-BDF/Hippocampe.git
cd core/static
bower install
mkdir core/logs
Now you can start Hippocampe with the following command :
cd /opt/Hippocampe
python core/app.py
The service runs on port 5000/TCP by default and can be queried it on http://HOSTNAME:5000/hippocampe/api/v1.0/more
.
Now refer to the tutorial to activate and update feeds.