chg: [kali] More fixes

pull/4152/head
Steve Clement 2019-02-09 00:47:31 +09:00
parent 66de5ee353
commit dde670cf4a
3 changed files with 36 additions and 8 deletions

View File

@ -908,7 +908,8 @@ viper () {
debug "Installing Viper dependencies" debug "Installing Viper dependencies"
sudo apt-get install \ sudo apt-get install \
libssl-dev swig python3-ssdeep p7zip-full unrar-free sqlite python3-pyclamd exiftool radare2 \ libssl-dev swig python3-ssdeep p7zip-full unrar-free sqlite python3-pyclamd exiftool radare2 \
python3-magic python3-sqlalchemy python3-prettytable libffi-dev - "Cloning Viper" python3-magic python3-sqlalchemy python3-prettytable libffi-dev
debug "Cloning Viper"
git clone https://github.com/viper-framework/viper.git git clone https://github.com/viper-framework/viper.git
chown -R $MISP_USER:$MISP_USER viper chown -R $MISP_USER:$MISP_USER viper
cd viper cd viper
@ -1031,11 +1032,20 @@ installMISPcore () {
space space
echo "Proceeding with the installation of MISP core" echo "Proceeding with the installation of MISP core"
space space
checkSudoKeeper
# add-user.sh
sudo apt update
# postfix.sh
installDeps # doubleCheck
# Mysql install functions
# misp code function
} }
# Main Kalin Install function # Main Kalin Install function
installMISPonKali () { installMISPonKali () {
# Set custom Kali only variables # Set custom Kali only variables and tweaks
space space
debug "Disabling sleep etc…" debug "Disabling sleep etc…"
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 2> /dev/null gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 2> /dev/null
@ -1050,7 +1060,6 @@ installMISPonKali () {
apt update 2> /dev/null > /dev/null && DONE=0 apt update 2> /dev/null > /dev/null && DONE=0
done done
unset DONE unset DONE
installDepsPhp73
installDeps installDeps
debug "Enabling redis and gnupg modules" debug "Enabling redis and gnupg modules"
@ -1095,9 +1104,10 @@ installMISPonKali () {
chown $MISP_USER:$MISP_USER ~$MISP_USER_HOME/.cache chown $MISP_USER:$MISP_USER ~$MISP_USER_HOME/.cache
chown www-data:www-data /var/www/.cache chown www-data:www-data /var/www/.cache
debug "Installing python-cybox" debug "Setting up main MISP virtualenv"
sudo -u www-data virtualenv -p python3 ${PATH_TO_MISP}/venv sudo -u www-data virtualenv -p python3 ${PATH_TO_MISP}/venv
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"
@ -1306,14 +1316,17 @@ if [ "${FLAVOUR}" == "debian" ]; then
if [ "${CODE}" == "buster" ]; then if [ "${CODE}" == "buster" ]; then
echo "Install on Debian testing fully supported." echo "Install on Debian testing fully supported."
echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues" echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues"
installDepsPhp73
fi fi
if [ "${CODE}" == "sid" ]; then if [ "${CODE}" == "sid" ]; then
echo "Install on Debian unstable not fully supported." echo "Install on Debian unstable not fully supported."
echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues" echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues"
installDepsPhp73
fi fi
if [ "${CODE}" == "stretch" ]; then if [ "${CODE}" == "stretch" ]; then
echo "Install on Debian stable fully supported." echo "Install on Debian stable fully supported."
echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues" echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues"
installDepsPhp72
fi fi
echo "Installation done!" echo "Installation done!"
exit 0 exit 0
@ -1335,6 +1348,7 @@ fi
if [ "${FLAVOUR}" == "kali" ]; then if [ "${FLAVOUR}" == "kali" ]; then
kaliOnRootR0ckz kaliOnRootR0ckz
installDepsPhp73
installMISPonKali installMISPonKali
echo "Installation done!" echo "Installation done!"
exit 0 exit 0

View File

@ -136,11 +136,20 @@ installMISPcore () {
space space
echo "Proceeding with the installation of MISP core" echo "Proceeding with the installation of MISP core"
space space
checkSudoKeeper
# add-user.sh
sudo apt update
# postfix.sh
installDeps # doubleCheck
# Mysql install functions
# misp code function
} }
# Main Kalin Install function # Main Kalin Install function
installMISPonKali () { installMISPonKali () {
# Set custom Kali only variables # Set custom Kali only variables and tweaks
space space
debug "Disabling sleep etc…" debug "Disabling sleep etc…"
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 2> /dev/null gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 2> /dev/null
@ -155,7 +164,6 @@ installMISPonKali () {
apt update 2> /dev/null > /dev/null && DONE=0 apt update 2> /dev/null > /dev/null && DONE=0
done done
unset DONE unset DONE
installDepsPhp73
installDeps installDeps
debug "Enabling redis and gnupg modules" debug "Enabling redis and gnupg modules"
@ -200,9 +208,10 @@ installMISPonKali () {
chown $MISP_USER:$MISP_USER ~$MISP_USER_HOME/.cache chown $MISP_USER:$MISP_USER ~$MISP_USER_HOME/.cache
chown www-data:www-data /var/www/.cache chown www-data:www-data /var/www/.cache
debug "Installing python-cybox" debug "Setting up main MISP virtualenv"
sudo -u www-data virtualenv -p python3 ${PATH_TO_MISP}/venv sudo -u www-data virtualenv -p python3 ${PATH_TO_MISP}/venv
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"
@ -411,14 +420,17 @@ if [ "${FLAVOUR}" == "debian" ]; then
if [ "${CODE}" == "buster" ]; then if [ "${CODE}" == "buster" ]; then
echo "Install on Debian testing fully supported." echo "Install on Debian testing fully supported."
echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues" echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues"
installDepsPhp73
fi fi
if [ "${CODE}" == "sid" ]; then if [ "${CODE}" == "sid" ]; then
echo "Install on Debian unstable not fully supported." echo "Install on Debian unstable not fully supported."
echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues" echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues"
installDepsPhp73
fi fi
if [ "${CODE}" == "stretch" ]; then if [ "${CODE}" == "stretch" ]; then
echo "Install on Debian stable fully supported." echo "Install on Debian stable fully supported."
echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues" echo "Please report bugs/issues here: https://github.com/MISP/MISP/issues"
installDepsPhp72
fi fi
echo "Installation done!" echo "Installation done!"
exit 0 exit 0
@ -440,6 +452,7 @@ fi
if [ "${FLAVOUR}" == "kali" ]; then if [ "${FLAVOUR}" == "kali" ]; then
kaliOnRootR0ckz kaliOnRootR0ckz
installDepsPhp73
installMISPonKali installMISPonKali
echo "Installation done!" echo "Installation done!"
exit 0 exit 0

View File

@ -9,7 +9,8 @@ viper () {
debug "Installing Viper dependencies" debug "Installing Viper dependencies"
sudo apt-get install \ sudo apt-get install \
libssl-dev swig python3-ssdeep p7zip-full unrar-free sqlite python3-pyclamd exiftool radare2 \ libssl-dev swig python3-ssdeep p7zip-full unrar-free sqlite python3-pyclamd exiftool radare2 \
python3-magic python3-sqlalchemy python3-prettytable libffi-dev - "Cloning Viper" python3-magic python3-sqlalchemy python3-prettytable libffi-dev
debug "Cloning Viper"
git clone https://github.com/viper-framework/viper.git git clone https://github.com/viper-framework/viper.git
chown -R $MISP_USER:$MISP_USER viper chown -R $MISP_USER:$MISP_USER viper
cd viper cd viper