pentest-distro-builder/config/pentest-distro-builder.chroot
Kaj Forney b8f58b1031 Stop ParrotSec from overwriting our customizations.
Former-commit-id: 9d0f9b93071f97eca14cda37a4a3ae8c3b32c794
Former-commit-id: 6285dd7d8a066ca42da8604a85e7fab1a550bac9
2019-01-24 14:07:16 -07:00

36 lines
814 B
Bash

#!/bin/sh
#Populate root's home folder from /etc/skel
cp -rv /etc/skel/. /root/
#Time to git stuff...
cd /root/
git clone https://github.com/Veil-Framework/Veil.git
git clone https://github.com/leebaird/discover.git
git clone https://github.com/trustedsec/ptf
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
#Enable our desired services
systemctl enable ssh
systemctl enable cups
systemctl enable apache2
systemctl enable mysql
systemctl enable postgresql
systemctl enable tor
systemctl enable cockpit.socket
systemctl enable xrdp
systemctl disable firewalld
#Distro-specific stuff
DISTRO=$(cat /etc/lsb-release | grep DISTRIB_ID | cut -c 12-30)
case $DISTRO in
Parrot)
#Stop ParrotSec from overwriting all our desktop customizations every time parrot-skel updates. >:-(
apt-mark hold parrot-skel
;;
Kali)
;;
esac