mirror of https://github.com/MISP/MISP
fix: [installer] Kali still had bugs. Most fixed
parent
1ab650c77a
commit
4378f1744c
|
@ -887,6 +887,9 @@ coreCAKE () {
|
||||||
|
|
||||||
# Setup some more MISP default via cake CLI
|
# Setup some more MISP default via cake CLI
|
||||||
|
|
||||||
|
# The default install is Python in a virtualenv, setting accordingly
|
||||||
|
$SUDO_WWW $CAKE Admin setSetting "MISP.python_bin" "${PATH_TO_MISP}/venv/bin/python"
|
||||||
|
|
||||||
# Tune global time outs
|
# Tune global time outs
|
||||||
$SUDO_WWW $CAKE Admin setSetting "Session.autoRegenerate" 0
|
$SUDO_WWW $CAKE Admin setSetting "Session.autoRegenerate" 0
|
||||||
$SUDO_WWW $CAKE Admin setSetting "Session.timeout" 600
|
$SUDO_WWW $CAKE Admin setSetting "Session.timeout" 600
|
||||||
|
@ -1063,9 +1066,10 @@ backgroundWorkers () {
|
||||||
|
|
||||||
# Main MISP Modules install function
|
# Main MISP Modules install function
|
||||||
mispmodules () {
|
mispmodules () {
|
||||||
sudo sed -i -e '$i \sudo -u www-data ${PATH_TO_MISP}/venv/bin/misp-modules -l 127.0.0.1 -s > /tmp/misp-modules_rc.local.log &\n' /etc/rc.local
|
# FIXME: this is broken, ${PATH_TO_MISP} is litteral
|
||||||
|
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
|
||||||
cd /usr/local/src/
|
cd /usr/local/src/
|
||||||
## TODO: checkUsrLocalSrc in main doc
|
## TODO: checkUsrLocalSrc in main doc
|
||||||
git clone https://github.com/MISP/misp-modules.git
|
git clone https://github.com/MISP/misp-modules.git
|
||||||
cd misp-modules
|
cd misp-modules
|
||||||
# some misp-modules dependencies
|
# some misp-modules dependencies
|
||||||
|
@ -1119,6 +1123,8 @@ mispmodules () {
|
||||||
|
|
||||||
# Main MISP Dashboard install function
|
# Main MISP Dashboard install function
|
||||||
mispDashboard () {
|
mispDashboard () {
|
||||||
|
# Install pyzmq to main MISP venv
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install pyzmq
|
||||||
cd /var/www
|
cd /var/www
|
||||||
sudo mkdir misp-dashboard
|
sudo mkdir misp-dashboard
|
||||||
sudo chown www-data:www-data misp-dashboard
|
sudo chown www-data:www-data misp-dashboard
|
||||||
|
@ -1426,8 +1432,6 @@ installMISPubuntuSupported () {
|
||||||
|
|
||||||
# Run cake CLI for the core installation - functionLocation('')
|
# Run cake CLI for the core installation - functionLocation('')
|
||||||
coreCAKE
|
coreCAKE
|
||||||
# TODO: Move this to Core Cake
|
|
||||||
sudo -H -u www-data $CAKE Admin setSetting "MISP.python_bin" "${PATH_TO_MISP}/venv/bin/python"
|
|
||||||
|
|
||||||
# Update Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies - functionLocation('')
|
# Update Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies - functionLocation('')
|
||||||
updateGOWNT
|
updateGOWNT
|
||||||
|
@ -1520,27 +1524,45 @@ installMISPonKali () {
|
||||||
debug "Installing python-cybox"
|
debug "Installing python-cybox"
|
||||||
cd $PATH_TO_MISP/app/files/scripts/python-cybox
|
cd $PATH_TO_MISP/app/files/scripts/python-cybox
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
debug "Installing python-stix"
|
debug "Installing python-stix"
|
||||||
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
# install STIX2.0 library to support STIX 2.0 export:
|
|
||||||
|
debug "Install maec"
|
||||||
|
cd $PATH_TO_MISP/app/files/scripts/python-maec
|
||||||
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
|
# install STIX2.0 library to support STIX 2.0 export
|
||||||
debug "Installing cti-python-stix2"
|
debug "Installing cti-python-stix2"
|
||||||
cd ${PATH_TO_MISP}/cti-python-stix2
|
cd ${PATH_TO_MISP}/cti-python-stix2
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install -I .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install -I .
|
||||||
|
|
||||||
debug "Installing mixbox"
|
debug "Installing mixbox"
|
||||||
cd $PATH_TO_MISP/app/files/scripts/mixbox
|
cd $PATH_TO_MISP/app/files/scripts/mixbox
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
# install PyMISP
|
# install PyMISP
|
||||||
debug "Installing PyMISP"
|
debug "Installing PyMISP"
|
||||||
cd $PATH_TO_MISP/PyMISP
|
cd $PATH_TO_MISP/PyMISP
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
|
# install pydeep
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install git+https://github.com/kbandla/pydeep.git
|
||||||
|
|
||||||
|
# install lief
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.9.0.dev.zip
|
||||||
|
|
||||||
|
# install python-magic
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install python-magic
|
||||||
|
|
||||||
# Install Crypt_GPG and Console_CommandLine
|
# Install Crypt_GPG and Console_CommandLine
|
||||||
debug "Installing pear Console_CommandLine"
|
debug "Installing pear Console_CommandLine"
|
||||||
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Console_CommandLine/package.xml
|
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Console_CommandLine/package.xml
|
||||||
debug "Installing pear Crypt_GPG"
|
debug "Installing pear Crypt_GPG"
|
||||||
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Crypt_GPG/package.xml
|
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Crypt_GPG/package.xml
|
||||||
|
|
||||||
|
|
||||||
debug "Installing composer with php 7.3 updates"
|
debug "Installing composer with php 7.3 updates"
|
||||||
composer73
|
composer73
|
||||||
|
|
||||||
|
@ -1643,11 +1665,11 @@ installMISPonKali () {
|
||||||
setupGnuPG
|
setupGnuPG
|
||||||
|
|
||||||
chmod +x $PATH_TO_MISP/app/Console/worker/start.sh
|
chmod +x $PATH_TO_MISP/app/Console/worker/start.sh
|
||||||
|
sudo $PATH_TO_MISP/app/Console/worker/start.sh
|
||||||
|
|
||||||
debug "Running Core Cake commands"
|
debug "Running Core Cake commands"
|
||||||
coreCAKE
|
coreCAKE
|
||||||
dashboardCake
|
dashboardCake
|
||||||
sudo -H -u www-data $CAKE Admin setSetting "MISP.python_bin" "${PATH_TO_MISP}/venv/bin/python"
|
|
||||||
|
|
||||||
debug "Update: Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies"
|
debug "Update: Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies"
|
||||||
updateGOWNT
|
updateGOWNT
|
||||||
|
|
|
@ -217,8 +217,6 @@ installMISPubuntuSupported () {
|
||||||
|
|
||||||
# Run cake CLI for the core installation - functionLocation('')
|
# Run cake CLI for the core installation - functionLocation('')
|
||||||
coreCAKE
|
coreCAKE
|
||||||
# TODO: Move this to Core Cake
|
|
||||||
sudo -H -u www-data $CAKE Admin setSetting "MISP.python_bin" "${PATH_TO_MISP}/venv/bin/python"
|
|
||||||
|
|
||||||
# Update Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies - functionLocation('')
|
# Update Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies - functionLocation('')
|
||||||
updateGOWNT
|
updateGOWNT
|
||||||
|
@ -311,27 +309,45 @@ installMISPonKali () {
|
||||||
debug "Installing python-cybox"
|
debug "Installing python-cybox"
|
||||||
cd $PATH_TO_MISP/app/files/scripts/python-cybox
|
cd $PATH_TO_MISP/app/files/scripts/python-cybox
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
debug "Installing python-stix"
|
debug "Installing python-stix"
|
||||||
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
# install STIX2.0 library to support STIX 2.0 export:
|
|
||||||
|
debug "Install maec"
|
||||||
|
cd $PATH_TO_MISP/app/files/scripts/python-maec
|
||||||
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
|
# install STIX2.0 library to support STIX 2.0 export
|
||||||
debug "Installing cti-python-stix2"
|
debug "Installing cti-python-stix2"
|
||||||
cd ${PATH_TO_MISP}/cti-python-stix2
|
cd ${PATH_TO_MISP}/cti-python-stix2
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install -I .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install -I .
|
||||||
|
|
||||||
debug "Installing mixbox"
|
debug "Installing mixbox"
|
||||||
cd $PATH_TO_MISP/app/files/scripts/mixbox
|
cd $PATH_TO_MISP/app/files/scripts/mixbox
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
# install PyMISP
|
# install PyMISP
|
||||||
debug "Installing PyMISP"
|
debug "Installing PyMISP"
|
||||||
cd $PATH_TO_MISP/PyMISP
|
cd $PATH_TO_MISP/PyMISP
|
||||||
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install .
|
||||||
|
|
||||||
|
# install pydeep
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install git+https://github.com/kbandla/pydeep.git
|
||||||
|
|
||||||
|
# install lief
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.9.0.dev.zip
|
||||||
|
|
||||||
|
# install python-magic
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install python-magic
|
||||||
|
|
||||||
# Install Crypt_GPG and Console_CommandLine
|
# Install Crypt_GPG and Console_CommandLine
|
||||||
debug "Installing pear Console_CommandLine"
|
debug "Installing pear Console_CommandLine"
|
||||||
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Console_CommandLine/package.xml
|
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Console_CommandLine/package.xml
|
||||||
debug "Installing pear Crypt_GPG"
|
debug "Installing pear Crypt_GPG"
|
||||||
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Crypt_GPG/package.xml
|
pear install ${PATH_TO_MISP}/INSTALL/dependencies/Crypt_GPG/package.xml
|
||||||
|
|
||||||
|
|
||||||
debug "Installing composer with php 7.3 updates"
|
debug "Installing composer with php 7.3 updates"
|
||||||
composer73
|
composer73
|
||||||
|
|
||||||
|
@ -434,11 +450,11 @@ installMISPonKali () {
|
||||||
setupGnuPG
|
setupGnuPG
|
||||||
|
|
||||||
chmod +x $PATH_TO_MISP/app/Console/worker/start.sh
|
chmod +x $PATH_TO_MISP/app/Console/worker/start.sh
|
||||||
|
sudo $PATH_TO_MISP/app/Console/worker/start.sh
|
||||||
|
|
||||||
debug "Running Core Cake commands"
|
debug "Running Core Cake commands"
|
||||||
coreCAKE
|
coreCAKE
|
||||||
dashboardCake
|
dashboardCake
|
||||||
sudo -H -u www-data $CAKE Admin setSetting "MISP.python_bin" "${PATH_TO_MISP}/venv/bin/python"
|
|
||||||
|
|
||||||
debug "Update: Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies"
|
debug "Update: Galaxies, Template Objects, Warning Lists, Notice Lists, Taxonomies"
|
||||||
updateGOWNT
|
updateGOWNT
|
||||||
|
|
|
@ -10,6 +10,9 @@ coreCAKE () {
|
||||||
|
|
||||||
# Setup some more MISP default via cake CLI
|
# Setup some more MISP default via cake CLI
|
||||||
|
|
||||||
|
# The default install is Python in a virtualenv, setting accordingly
|
||||||
|
$SUDO_WWW $CAKE Admin setSetting "MISP.python_bin" "${PATH_TO_MISP}/venv/bin/python"
|
||||||
|
|
||||||
# Tune global time outs
|
# Tune global time outs
|
||||||
$SUDO_WWW $CAKE Admin setSetting "Session.autoRegenerate" 0
|
$SUDO_WWW $CAKE Admin setSetting "Session.autoRegenerate" 0
|
||||||
$SUDO_WWW $CAKE Admin setSetting "Session.timeout" 600
|
$SUDO_WWW $CAKE Admin setSetting "Session.timeout" 600
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
# <snippet-begin 4_misp-dashboard.sh>
|
# <snippet-begin 4_misp-dashboard.sh>
|
||||||
# Main MISP Dashboard install function
|
# Main MISP Dashboard install function
|
||||||
mispDashboard () {
|
mispDashboard () {
|
||||||
|
# Install pyzmq to main MISP venv
|
||||||
|
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install pyzmq
|
||||||
cd /var/www
|
cd /var/www
|
||||||
sudo mkdir misp-dashboard
|
sudo mkdir misp-dashboard
|
||||||
sudo chown www-data:www-data misp-dashboard
|
sudo chown www-data:www-data misp-dashboard
|
||||||
|
|
|
@ -4,9 +4,10 @@
|
||||||
# <snippet-begin 3_misp-modules.sh>
|
# <snippet-begin 3_misp-modules.sh>
|
||||||
# Main MISP Modules install function
|
# Main MISP Modules install function
|
||||||
mispmodules () {
|
mispmodules () {
|
||||||
sudo sed -i -e '$i \sudo -u www-data ${PATH_TO_MISP}/venv/bin/misp-modules -l 127.0.0.1 -s > /tmp/misp-modules_rc.local.log &\n' /etc/rc.local
|
# FIXME: this is broken, ${PATH_TO_MISP} is litteral
|
||||||
|
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
|
||||||
cd /usr/local/src/
|
cd /usr/local/src/
|
||||||
## TODO: checkUsrLocalSrc in main doc
|
## TODO: checkUsrLocalSrc in main doc
|
||||||
git clone https://github.com/MISP/misp-modules.git
|
git clone https://github.com/MISP/misp-modules.git
|
||||||
cd misp-modules
|
cd misp-modules
|
||||||
# some misp-modules dependencies
|
# some misp-modules dependencies
|
||||||
|
|
Loading…
Reference in New Issue