mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-10-31 16:39:11 -06:00
Kaj Forney
75033569c9
Former-commit-id: a55a45cb36301ca49c385f55b66aac280da52851 Former-commit-id: 9cdf6eb6f92f06bc145aaad8351c9f519047683c
39 lines
882 B
Bash
39 lines
882 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
|
|
|
|
#Allow VLC to run as root
|
|
sed -i 's/geteuid/getppid/' /usr/bin/vlc
|
|
|
|
#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
|
|
|