From 63c3eaf1e2b0cd66e3bd7a389bdd9dba51d40298 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Fri, 13 Jul 2018 17:26:42 +0200 Subject: [PATCH] chg: [doc] Add bootstrap function for Kali --- INSTALL/INSTALL.kali.txt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/INSTALL/INSTALL.kali.txt b/INSTALL/INSTALL.kali.txt index 21f58d1ce..9942f5925 100644 --- a/INSTALL/INSTALL.kali.txt +++ b/INSTALL/INSTALL.kali.txt @@ -7,10 +7,24 @@ # #1/ Prepare Kali with a MISP User #-------------------------------- -# useradd -s /bin/bash -m -G adm,cdrom,sudo,dip,plugdev,www-data misp -# passwd misp -# su - misp +# To install MISP on Kali copy paste this in your r00t shell: # sh -c "$(curl -fsSL https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.kali.txt)" +# /!\ Please read the installer script before randomly doing the above. +# The script is tested on a plain vanilla Kali Linux Boot CD and installs quite a few dependencies. + +function kaliOnRootR0ckz () { + if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 + else + useradd -s /bin/bash -m -G adm,cdrom,sudo,dip,plugdev,www-data misp + passwd misp + su -m misp + cd ~misp + fi +} + +kaliOnRootR0ckz # MISP configuration variables PATH_TO_MISP='/var/www/MISP'