chg: [doc] Add bootstrap function for Kali

pull/3483/head
Steve Clement 2018-07-13 17:26:42 +02:00
parent 2202304b97
commit 63c3eaf1e2
1 changed files with 17 additions and 3 deletions

View File

@ -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'