From c0b5fef65719b0b01b270ea394badb6d841911d2 Mon Sep 17 00:00:00 2001
From: J0nan <46595866+J0nan@users.noreply.github.com>
Date: Fri, 11 Apr 2025 11:27:53 +0200
Subject: [PATCH 1/5] Changed hostname if it is vbox
---
provisioning/kali/generic/PostSeed.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/provisioning/kali/generic/PostSeed.sh b/provisioning/kali/generic/PostSeed.sh
index 3dcd0d0..635ab2a 100644
--- a/provisioning/kali/generic/PostSeed.sh
+++ b/provisioning/kali/generic/PostSeed.sh
@@ -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}"
From 1b9779b78249ffbb08fa462187cdcfbbde519ac2 Mon Sep 17 00:00:00 2001
From: J0nan <46595866+J0nan@users.noreply.github.com>
Date: Fri, 11 Apr 2025 11:29:13 +0200
Subject: [PATCH 2/5] Update the links to develop
---
provisioning/kali/generic/preseed.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/provisioning/kali/generic/preseed.cfg b/provisioning/kali/generic/preseed.cfg
index 1376507..2f0581c 100644
--- a/provisioning/kali/generic/preseed.cfg
+++ b/provisioning/kali/generic/preseed.cfg
@@ -70,6 +70,6 @@ d-i finish-install/reboot_in_progress note
# Post instalation
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 wget --no-check-certificate -O /tmp/PostSeed.sh https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/develop/provisioning/kali/generic/PostSeed.sh; \
in-target chmod 755 /tmp/PostSeed.sh; \
in-target /bin/bash -x /tmp/PostSeed.sh;
From 5d7cf252df964495b244510236efdd507732ddc3 Mon Sep 17 00:00:00 2001
From: J0nan <46595866+J0nan@users.noreply.github.com>
Date: Fri, 11 Apr 2025 11:45:33 +0200
Subject: [PATCH 3/5] Change link to develop
---
provisioning/kali/generic/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/provisioning/kali/generic/README.md b/provisioning/kali/generic/README.md
index 4ca6c3e..107265f 100644
--- a/provisioning/kali/generic/README.md
+++ b/provisioning/kali/generic/README.md
@@ -33,7 +33,7 @@ This guide is focused in Kali Linux using VirtualBox
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=
+url=https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/develop/provisioning/kali/generic/preseed.cfg language=en country=ES locale=en_US.UTF-8 keymap=es hostname=kali domain=
```
From ac9d4ca0a2d66d5977d503bccb717f55987201a9 Mon Sep 17 00:00:00 2001
From: J0nan <46595866+J0nan@users.noreply.github.com>
Date: Wed, 23 Apr 2025 08:58:25 +0200
Subject: [PATCH 4/5] Changed the download path of dbeaver
---
provisioning/kali/generic/PostSeed.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/provisioning/kali/generic/PostSeed.sh b/provisioning/kali/generic/PostSeed.sh
index 635ab2a..2acf687 100644
--- a/provisioning/kali/generic/PostSeed.sh
+++ b/provisioning/kali/generic/PostSeed.sh
@@ -83,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
From 32073ce267d065dd192cc97487c3a37d85f48779 Mon Sep 17 00:00:00 2001
From: J0nan
Date: Sun, 27 Apr 2025 12:58:11 +0200
Subject: [PATCH 5/5] Prepare for merge to main
---
provisioning/kali/generic/PostSeed.sh | 2 +-
provisioning/kali/generic/README.md | 2 +-
provisioning/kali/generic/preseed.cfg | 3 ++-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/provisioning/kali/generic/PostSeed.sh b/provisioning/kali/generic/PostSeed.sh
index 2acf687..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
diff --git a/provisioning/kali/generic/README.md b/provisioning/kali/generic/README.md
index 107265f..4ca6c3e 100644
--- a/provisioning/kali/generic/README.md
+++ b/provisioning/kali/generic/README.md
@@ -33,7 +33,7 @@ This guide is focused in Kali Linux using VirtualBox
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/develop/provisioning/kali/generic/preseed.cfg language=en country=ES locale=en_US.UTF-8 keymap=es hostname=kali domain=
+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=
```
diff --git a/provisioning/kali/generic/preseed.cfg b/provisioning/kali/generic/preseed.cfg
index 2f0581c..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
@@ -70,6 +71,6 @@ d-i finish-install/reboot_in_progress note
# Post instalation
d-i preseed/late_command string \
- in-target wget --no-check-certificate -O /tmp/PostSeed.sh https://raw.githubusercontent.com/J0nan/RandomThings/refs/heads/develop/provisioning/kali/generic/PostSeed.sh; \
+ 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;