mirror of https://github.com/MISP/MISP
Merge pull request #6629 from SteveClement/guides
commit
f86e2c6d7b
|
@ -235,13 +235,16 @@ installCoreRHEL () {
|
|||
umask 0022
|
||||
|
||||
cd $PATH_TO_MISP/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install .
|
||||
|
||||
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install .
|
||||
|
||||
# install mixbox to accommodate the new STIX dependencies:
|
||||
cd $PATH_TO_MISP/app/files/scripts/mixbox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install .
|
||||
|
||||
# install STIX2.0 library to support STIX 2.0 export:
|
||||
|
@ -261,6 +264,7 @@ installCoreRHEL () {
|
|||
sudo yum install devtoolset-7 cmake3 cppcheck libcxx-devel -y
|
||||
|
||||
cd $PATH_TO_MISP/app/files/scripts/lief
|
||||
$SUDO_WWW git config core.filemode false
|
||||
$SUDO_WWW mkdir build
|
||||
cd build
|
||||
$SUDO_WWW scl enable devtoolset-7 "bash -c 'cmake3 \
|
||||
|
|
|
@ -208,14 +208,17 @@ installCoreRHEL () {
|
|||
$SUDO_WWW git clone https://github.com/CybOXProject/mixbox.git
|
||||
|
||||
cd $PATH_TO_MISP/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
# If you umask is has been changed from the default, it is a good idea to reset it to 0022 before installing python modules
|
||||
UMASK=$(umask)
|
||||
umask 0022
|
||||
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install .
|
||||
|
||||
# install mixbox to accommodate the new STIX dependencies:
|
||||
cd $PATH_TO_MISP/app/files/scripts/mixbox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install .
|
||||
|
||||
# install STIX2.0 library to support STIX 2.0 export:
|
||||
|
@ -236,6 +239,7 @@ installCoreRHEL () {
|
|||
sudo yum install cmake3 -y
|
||||
|
||||
cd $PATH_TO_MISP/app/files/scripts/lief
|
||||
$SUDO_WWW git config core.filemode false
|
||||
$SUDO_WWW mkdir build
|
||||
cd build
|
||||
$SUDO_WWW cmake3 \
|
||||
|
|
|
@ -8,12 +8,12 @@ MISPvars () {
|
|||
debug "Setting generic ${LBLUE}MISP${NC} variables shared by all flavours" 2> /dev/null
|
||||
# Local non-root MISP user
|
||||
MISP_USER="${MISP_USER:-misp}"
|
||||
MISP_PASSWORD="$(openssl rand -hex 32)"
|
||||
MISP_PASSWORD="${MISP_PASSWORD:-$(openssl rand -hex 32)}"
|
||||
|
||||
# The web server user
|
||||
# RHEL/CentOS
|
||||
if [[ -f "/etc/redhat-release" ]]; then
|
||||
WWW_USER='apache'
|
||||
WWW_USER="apache"
|
||||
SUDO_WWW="sudo -H -u ${WWW_USER} "
|
||||
# Debian flavoured
|
||||
elif [[ -f "/etc/debian_version" ]]; then
|
||||
|
@ -43,32 +43,32 @@ MISPvars () {
|
|||
|
||||
MISP_BASEURL="${MISP_BASEURL:-""}"
|
||||
|
||||
MISP_LIVE='1'
|
||||
MISP_LIVE="1"
|
||||
|
||||
# Database configuration
|
||||
DBHOST='localhost'
|
||||
DBNAME='misp'
|
||||
DBUSER_ADMIN='root'
|
||||
DBPASSWORD_ADMIN="$(openssl rand -hex 32)"
|
||||
DBUSER_MISP='misp'
|
||||
DBPASSWORD_MISP="$(openssl rand -hex 32)"
|
||||
DBHOST="${DBHOST:-localhost}"
|
||||
DBNAME="${DBNAME:-misp}"
|
||||
DBUSER_ADMIN="${DBUSER_ADMIN:-root}"
|
||||
DBPASSWORD_ADMIN="${DBPASSWORD_ADMIN:-$(openssl rand -hex 32)}"
|
||||
DBUSER_MISP="${DBUSER_MISP:-misp}"
|
||||
DBPASSWORD_MISP="${DBPASSWORD_MISP:-$(openssl rand -hex 32)}"
|
||||
|
||||
# OpenSSL configuration
|
||||
OPENSSL_CN=${FQDN}
|
||||
OPENSSL_C='LU'
|
||||
OPENSSL_ST='State'
|
||||
OPENSSL_L='Location'
|
||||
OPENSSL_O='Organization'
|
||||
OPENSSL_OU='Organizational Unit'
|
||||
OPENSSL_C="LU"
|
||||
OPENSSL_ST="State"
|
||||
OPENSSL_L="Location"
|
||||
OPENSSL_O="Organization"
|
||||
OPENSSL_OU="Organizational Unit"
|
||||
OPENSSL_EMAILADDRESS="info@${FQDN}"
|
||||
|
||||
# GPG configuration
|
||||
GPG_REAL_NAME='Autogenerated Key'
|
||||
GPG_REAL_NAME="Autogenerated Key"
|
||||
# On a REAL install, please do not set a comment, see here for why: https://www.debian-administration.org/users/dkg/weblog/97
|
||||
GPG_COMMENT='WARNING: MISP AutoGenerated Key consider this Key VOID!'
|
||||
GPG_EMAIL_ADDRESS='admin@admin.test'
|
||||
GPG_COMMENT="WARNING: MISP AutoGenerated Key consider this Key VOID!"
|
||||
GPG_EMAIL_ADDRESS="admin@admin.test"
|
||||
# 3072 bits used as per suggestions here: https://riseup.net/en/security/message-security/openpgp/best-practices
|
||||
GPG_KEY_LENGTH='3072'
|
||||
GPG_KEY_LENGTH="3072"
|
||||
GPG_PASSPHRASE="$(openssl rand -hex 32)"
|
||||
|
||||
# debug alias to make sure people are not confused when blindly copy pasting blobs of code
|
||||
|
@ -78,10 +78,10 @@ MISPvars () {
|
|||
alias checkAptLock="echo 'Function used in Installer to make sure apt is not locked'"
|
||||
|
||||
# php.ini configuration
|
||||
upload_max_filesize=50M
|
||||
post_max_size=50M
|
||||
max_execution_time=300
|
||||
memory_limit=2048M
|
||||
upload_max_filesize="50M"
|
||||
post_max_size="50M"
|
||||
max_execution_time="300"
|
||||
memory_limit="2048M"
|
||||
|
||||
CAKE="${PATH_TO_MISP}/app/Console/cake"
|
||||
|
||||
|
|
|
@ -352,16 +352,20 @@ false; while [[ $? -ne 0 ]]; do ${SUDO_WWW} git clone https://github.com/MAECPro
|
|||
false; while [[ $? -ne 0 ]]; do ${SUDO_WWW} git clone https://github.com/CybOXProject/mixbox.git; done
|
||||
|
||||
cd /var/www/htdocs/MISP/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
doas /usr/local/virtualenvs/MISP/bin/python setup.py install
|
||||
|
||||
cd /var/www/htdocs/MISP/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
doas /usr/local/virtualenvs/MISP/bin/python setup.py install
|
||||
|
||||
cd /var/www/htdocs/MISP/app/files/scripts/python-maec
|
||||
$SUDO_WWW git config core.filemode false
|
||||
doas /usr/local/virtualenvs/MISP/bin/python setup.py install
|
||||
|
||||
# install mixbox to accommodate the new STIX dependencies:
|
||||
cd /var/www/htdocs/MISP/app/files/scripts/mixbox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
doas /usr/local/virtualenvs/MISP/bin/python setup.py install
|
||||
|
||||
# install PyMISP
|
||||
|
@ -611,6 +615,7 @@ cd /usr/local/src/
|
|||
doas chown ${MISP_USER} /usr/local/src
|
||||
doas -u misp git clone https://github.com/MISP/misp-modules.git
|
||||
cd misp-modules
|
||||
$SUDO_WWW git config core.filemode false
|
||||
# pip3 install
|
||||
doas /usr/local/virtualenvs/MISP/bin/pip install -I -r REQUIREMENTS
|
||||
doas /usr/local/virtualenvs/MISP/bin/pip install -I .
|
||||
|
@ -841,6 +846,7 @@ doas mkdir misp-dashboard
|
|||
doas chown www:www misp-dashboard
|
||||
${SUDO_WWW} git clone https://github.com/MISP/misp-dashboard.git
|
||||
cd misp-dashboard
|
||||
$SUDO_WWW git config core.filemode false
|
||||
#/!\ Made on Linux, the next script will fail
|
||||
#doas /var/www/misp-dashboard/install_dependencies.sh
|
||||
doas virtualenv -ppython3 /usr/local/virtualenvs/DASHENV
|
||||
|
|
|
@ -157,10 +157,12 @@ cd ${PATH_TO_MISP}/app/files/scripts
|
|||
${SUDO_WWW} git clone https://github.com/CybOXProject/python-cybox.git
|
||||
${SUDO_WWW} git clone https://github.com/STIXProject/python-stix.git
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
# If you umask is has been changed from the default, it is a good idea to reset it to 0022 before installing python modules
|
||||
UMASK=$(umask)
|
||||
umask 0022
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
||||
# install maec
|
||||
|
@ -182,6 +184,7 @@ ${SUDO_WWW} git clone --branch master --single-branch https://github.com/lief-pr
|
|||
|
||||
# TODO: Fix static path with PATH_TO_MISP
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/lief
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} mkdir build
|
||||
cd build
|
||||
${SUDO_WWW} scl enable devtoolset-7 rh-python36 'bash -c "cmake3 \
|
||||
|
|
|
@ -153,10 +153,12 @@ ${SUDO_WWW} git clone --branch master --single-branch https://github.com/lief-pr
|
|||
${SUDO_WWW} git clone https://github.com/CybOXProject/mixbox.git
|
||||
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
# If you umask is has been changed from the default, it is a good idea to reset it to 0022 before installing python modules
|
||||
UMASK=$(umask)
|
||||
umask 0022
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
||||
# install maec
|
||||
|
@ -174,6 +176,7 @@ sudo yum install devtoolset-7 cmake3 -y
|
|||
|
||||
# TODO: Fix static path with PATH_TO_MISP
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/lief
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} mkdir build
|
||||
cd build
|
||||
${SUDO_WWW} scl enable devtoolset-7 'bash -c "cmake3 \
|
||||
|
@ -194,6 +197,7 @@ ${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install lief
|
|||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install -U python-magic git+https://github.com/kbandla/pydeep.git
|
||||
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/mixbox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
||||
# install STIX2.0 library to support STIX 2.0 export:
|
||||
|
@ -573,6 +577,7 @@ sudo chown root:users /usr/local/src
|
|||
cd /usr/local/src/
|
||||
${SUDO_WWW} git clone https://github.com/MISP/misp-modules.git
|
||||
cd misp-modules
|
||||
$SUDO_WWW git config core.filemode false
|
||||
# pip install
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install -I -r REQUIREMENTS
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
|
|
@ -147,12 +147,16 @@ ${SUDO_WWW} git clone https://github.com/MAECProject/python-maec.git
|
|||
# install mixbox to accommodate the new STIX dependencies:
|
||||
${SUDO_WWW} git clone https://github.com/CybOXProject/mixbox.git
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/mixbox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-maec
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
# install STIX2.0 library to support STIX 2.0 export:
|
||||
cd ${PATH_TO_MISP}/cti-python-stix2
|
||||
|
|
|
@ -176,10 +176,13 @@ ${SUDO_WWW} git clone https://github.com/MAECProject/python-maec.git
|
|||
# install mixbox to accommodate the new STIX dependencies:
|
||||
${SUDO_WWW} git clone https://github.com/CybOXProject/mixbox.git
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/mixbox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-maec
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
|
|
@ -178,16 +178,20 @@ git clone https://github.com/CybOXProject/python-cybox.git
|
|||
git clone https://github.com/STIXProject/python-stix.git
|
||||
git clone https://github.com/MAECProject/python-maec.git
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-cybox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-stix
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/python-maec
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
||||
# install mixbox to accommodate the new STIX dependencies:
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/
|
||||
git clone https://github.com/CybOXProject/mixbox.git
|
||||
cd ${PATH_TO_MISP}/app/files/scripts/mixbox
|
||||
$SUDO_WWW git config core.filemode false
|
||||
${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
||||
# install PyMISP
|
||||
|
|
Loading…
Reference in New Issue