pentest-distro-builder/filesystem/root/postinstall.sh

37 lines
893 B
Bash
Raw Normal View History

!/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 --new
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.............'