diff --git a/provisioning/kali/generic/PostSeed.sh b/provisioning/kali/generic/PostSeed.sh index 3dcd0d0..4464d11 100644 --- a/provisioning/kali/generic/PostSeed.sh +++ b/provisioning/kali/generic/PostSeed.sh @@ -1,7 +1,7 @@ #!/bin/bash # Authors: J0nan / n0t4u -# Version: 0.2.3 +# Version: 1.0.0 # Description: Automatic installation of hacking tools on Kali DEBIAN_FRONTEND=noninteractive @@ -28,6 +28,15 @@ wget --no-check-certificate -O /home/kali/.config/xfce4/xfconf/xfce-perchannel-x chown -R kali:kali /home/kali/.config/xfce4/xfconf/xfce-perchannel-xml chmod 664 /home/kali/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml +# Change hostname to kali due to vbox changing it +current_hostname=$(hostname) +if [ "$current_hostname" == "vbox" ]; then + echo "${Blue}[*] Current hostname is 'vbox'. Changing it to 'kali'...${ColorOff}" + hostnamectl set-hostname kali + sed -i 's/vbox/kali/g' /etc/hosts + echo "kali" | sudo tee /etc/hostname > /dev/null +fi + # General purpose tools # Python3 and PIP3 echo -e "${Blue}[*] Installing python3 ${ColorOff}" @@ -74,10 +83,10 @@ echo -e "${Blue}[*] Installing dnsutils (dig, nslookup)${ColorOff}" apt install dnsutils -y # Dbeaver -mkdir -p /home/kali/Downloads -wget --no-check-certificate -O /home/kali/Downloads/dbeaber-ce.deb https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb -apt install /home/kali/Downloads/dbeaber-ce.deb -y -rm /home/kali/Downloads/dbeaber-ce.deb +mkdir -p /tmp/Downloads +wget --no-check-certificate -O /tmp/Downloads/dbeaber-ce.deb https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb +apt install /tmp/Downloads/dbeaber-ce.deb -y +rm /tmp/Downloads/dbeaber-ce.deb # Web applications tools # Nuclei diff --git a/provisioning/kali/generic/preseed.cfg b/provisioning/kali/generic/preseed.cfg index 1376507..7d8f8f8 100644 --- a/provisioning/kali/generic/preseed.cfg +++ b/provisioning/kali/generic/preseed.cfg @@ -1,5 +1,6 @@ #_preseed_V1 # Author: J0nan +# Version: 1.0.0 # Configures Kali for unattended installations # Localization