pentest-distro-builder/filesystem/etc/skel/postinstall.sh
Kaj Forney f7da7f3982 Move stuff to /etc/skel
Former-commit-id: d5258c85bc
Former-commit-id: aaf57e63c1976b3960fee717c68c3b09dc1a94ff
2018-10-18 13:47:28 -06:00

37 lines
893 B
Bash
Executable file

!/bin/bash
# init
function pause(){
echo ' '
echo 'Press any key to continue...'; read -p "$*"
}
clear
echo 'System Update'
echo '______________________________________ '
apt update
echo 'Update RSA SSH Keys'
ssh-keygen -t rsa
systemctl restart ssh
systemctl enable ssh --now
systemctl enable cups --now
systemctl enable apache2 --now
systemctl enable mysql --new
systemctl enable postgresql --now
systemctl enable tor --now
systemctl enable cockpit.socket --now
echo 'Init Metacploit Database'
msfdb init
echo 'Init File Locater Database'
updatedb
echo 'Get Stuff from github'
echo 'Get Veil Framework'
git clone https://github.com/Veil-Framework/Veil.git
echo 'Get Discover Scripts for Gethub'
git clone https://github.com/leebaird/discover.git
echo 'Get Penetration Testing Framework'
git clone https://github.com/trustedsec/ptf
pause
apt upgrade -y
echo ''
echo 'Finished.............'