diff --git a/provisioning/kali/generic/PostSeed.sh b/provisioning/kali/generic/PostSeed.sh index f0143a8..1a05437 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.0 +# Version: 0.2.3 # Description: Automatic installation of hacking tools on Kali DEBIAN_FRONTEND=noninteractive @@ -20,14 +20,6 @@ mkdir -p /home/kali/.config/qterminal.org wget --no-check-certificate -O /home/kali/.config/qterminal.org/qterminal.ini https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/main/provisioning/kali/generic/qterminal.ini wget --no-check-certificate -O /home/kali/.config/qterminal.org/qterminal_bookmarks.xml https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/main/provisioning/kali/generic/qterminal_bookmarks.xml chown -R kali:kali /home/kali/.config/qterminal.org -# Copy the old terminal themes to the new qterminal -mkdir -p /usr/share/qtermwidget6/color-schemes -cp /usr/share/qtermwidget5/color-schemes/* /usr/share/qtermwidget6/color-schemes/ -# Setting the default kali wallpaper -mkdir -p /home/kali/.config/xfce4/xfconf/xfce-perchannel-xml -wget --no-check-certificate -O /home/kali/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/main/provisioning/kali/generic/xfce4-desktop.xml -chown -R kali:kali /home/kali/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml - # Power manager XFCE in user kali # Disabling power safe, blank screen and switch-off in the monitor @@ -51,8 +43,19 @@ apt install golang-go -y go env -w GOBIN="/opt/go/bin" echo -en 'export PATH="$PATH:/usr/local/go/bin:/opt/go/bin"\ngo env -w GOBIN="/opt/go/bin"' >>/etc/profile -# Docker -apt install docker.io -y +# Docker + docker compose +apt remove docker.io docker-compose -y +apt update +apt install ca-certificates curl -y +install -m 0755 -d /etc/apt/keyrings +curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc +chmod a+r /etc/apt/keyrings/docker.asc +echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ + $(. /etc/os-release && echo "bookworm") stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null +apt update +apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y systemctl disable docker.service systemctl disable docker.socket usermod -a -G docker kali @@ -70,6 +73,12 @@ git clone https://github.com/danielmiessler/SecLists.git /opt/SecLists 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 + # Web applications tools # Nuclei echo -e "${Blue}[*] Installing nuclei${ColorOff}" @@ -138,12 +147,6 @@ ln -s /opt/corsy/corsy.py /usr/bin/corsy echo -e "${Blue}[*] Installing EyeWitness${ColorOff}" apt install eyewitness -y -# Aquatone -echo -e "${Blue}[*] Installing Aquatone${ColorOff}" -git clone https://github.com/firefart/aquatone.git /opt/aquatone -go build -buildvcs=false /opt/aquatone -ln -s /opt/aquatone/aquatone /usr/bin/aquatone - # Infrastructure tools # Onesixtyone (SNMP) echo -e "${Blue}[*] Installing onesixtyone${ColorOff}" diff --git a/provisioning/kali/generic/README.md b/provisioning/kali/generic/README.md index 29a787e..65394d8 100644 --- a/provisioning/kali/generic/README.md +++ b/provisioning/kali/generic/README.md @@ -30,7 +30,7 @@ This guide is focused in Kali Linux using VirtualBox
Installer image
-1. Once the command line is shown add the following changing the language, country, locale and keymap if needed. If you are not able to copy and paste, you can use any [Pastebin Services](https://github.com/lorien/awesome-pastebins) to copy and paste the content of the preseed.cfg file and type a shorter url instead of the one from Github. Also, you can use [ClickPaste](https://github.com/Collective-Software/ClickPaste) to paste into the Virtual Machine. +7. Once the command line is shown add the following changing the language, country, locale and keymap if needed. If you are not able to copy and paste, you can use any [Pastebin Services](https://github.com/lorien/awesome-pastebins) to copy and paste the content of the preseed.cfg file and type a shorter url instead of the one from Github. Also, you can use [ClickPaste](https://github.com/Collective-Software/ClickPaste) to paste into the Virtual Machine. ```shell url=https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/main/provisioning/kali/generic/preseed.cfg language=en country=ES locale=en_US.UTF-8 keymap=es hostname=kali domain= @@ -40,6 +40,12 @@ url=https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/main/provisi 8. After entering the command press `Enter` and wait until Kali is installed. +Sometimes for some reason, the cursor glitches out, if that happens just restart lightdm with: + +```bash +sudo systemctl restart lightdm +``` + ## What it does ### Preseed.cfg @@ -57,8 +63,6 @@ This script is executed by the installer after performing all the configurations - Removes the transparency of the terminal. - Disables power safe, blank screen and switch-off in the monitor -- Moves the theme files from qterminal 5 to qterminal 6 -- Changed the desktop wallpaper to the Kali default one #### Tools @@ -71,6 +75,7 @@ This script is executed by the installer after performing all the configurations - snapd - [SecList](https://github.com/danielmiessler/SecLists) - dnsutils +- [DBeaver](https://dbeaver.io/) ##### Web applications tools @@ -88,7 +93,6 @@ This script is executed by the installer after performing all the configurations - [Bypass-403](https://github.com/iamj0ker/bypass-403) - [Corsy](https://github.com/s0md3v/Corsy) - eyewitness -- [Aquatone](https://github.com/firefart/aquatone) ##### Infrastructure tools diff --git a/provisioning/kali/generic/preseed.cfg b/provisioning/kali/generic/preseed.cfg index 1b51756..1376507 100644 --- a/provisioning/kali/generic/preseed.cfg +++ b/provisioning/kali/generic/preseed.cfg @@ -72,4 +72,4 @@ d-i finish-install/reboot_in_progress note d-i preseed/late_command string \ in-target wget --no-check-certificate -O /tmp/PostSeed.sh https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/main/provisioning/kali/generic/PostSeed.sh; \ in-target chmod 755 /tmp/PostSeed.sh; \ - in-target /bin/bash -x /tmp/PostSeed.sh; \ No newline at end of file + in-target /bin/bash -x /tmp/PostSeed.sh;