mirror of https://github.com/MISP/misp-modules
chg: [docs] Added some missing dependencies and instructions for virtualenv deployment
parent
35edeac9e3
commit
d08962afd2
24
README.md
24
README.md
|
@ -75,17 +75,35 @@ For more information: [Extending MISP with Python modules](https://www.circl.lu/
|
||||||
* [ThreatAnalyzer](misp_modules/modules/import_mod/threatanalyzer_import.py) - An import module to process ThreatAnalyzer archive.zip/analysis.json sandbox exports.
|
* [ThreatAnalyzer](misp_modules/modules/import_mod/threatanalyzer_import.py) - An import module to process ThreatAnalyzer archive.zip/analysis.json sandbox exports.
|
||||||
* [VMRay](misp_modules/modules/import_mod/vmray_import.py) - An import module to process VMRay export.
|
* [VMRay](misp_modules/modules/import_mod/vmray_import.py) - An import module to process VMRay export.
|
||||||
|
|
||||||
|
## How to install and start MISP modules in a Python virtualenv?
|
||||||
|
|
||||||
|
~~~~bash
|
||||||
|
sudo apt-get install python3-dev python3-pip libpq5 libjpeg-dev tesseract-ocr imagemagick
|
||||||
|
sudo -u www-data virtualenv -p python3 /var/www/MISP/venv
|
||||||
|
cd /usr/local/src/
|
||||||
|
sudo git clone https://github.com/MISP/misp-modules.git
|
||||||
|
cd misp-modules
|
||||||
|
sudo -u www-data /var/www/MISP/venv/bin/pip install -I -r REQUIREMENTS
|
||||||
|
sudo -u www-data /var/www/MISP/venv/bin/pip install .
|
||||||
|
sudo apt install ruby-pygments.rb -y
|
||||||
|
sudo gem install asciidoctor-pdf --pre
|
||||||
|
sudo sed -i -e '$i \sudo -u www-data /var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s > /tmp/misp-modules_rc.local.log &\n' /etc/rc.local
|
||||||
|
/var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s & #to start the modules
|
||||||
|
~~~~
|
||||||
|
|
||||||
## How to install and start MISP modules?
|
## How to install and start MISP modules?
|
||||||
|
|
||||||
~~~~bash
|
~~~~bash
|
||||||
sudo apt-get install python3-dev python3-pip libpq5 libjpeg-dev
|
sudo apt-get install python3-dev python3-pip libpq5 libjpeg-dev tesseract-ocr imagemagick
|
||||||
cd /usr/local/src/
|
cd /usr/local/src/
|
||||||
sudo git clone https://github.com/MISP/misp-modules.git
|
sudo git clone https://github.com/MISP/misp-modules.git
|
||||||
cd misp-modules
|
cd misp-modules
|
||||||
sudo pip3 install -I -r REQUIREMENTS
|
sudo pip3 install -I -r REQUIREMENTS
|
||||||
sudo pip3 install -I .
|
sudo pip3 install -I .
|
||||||
sudo vi /etc/rc.local, add this line: `sudo -u www-data misp-modules -s &`
|
sudo apt install ruby-pygments.rb -y
|
||||||
misp-modules #to start the modules
|
sudo gem install asciidoctor-pdf --pre
|
||||||
|
sudo sed -i -e '$i \sudo -u www-data /var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s > /tmp/misp-modules_rc.local.log &\n' /etc/rc.local
|
||||||
|
/var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s & #to start the modules
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
## How to add your own MISP modules?
|
## How to add your own MISP modules?
|
||||||
|
|
Loading…
Reference in New Issue