From 825d3dcc52d0567df6ae3207777f865f2711c3fa Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Tue, 31 Jan 2023 14:11:29 +0700 Subject: [PATCH] Add kali-purple simple-cdd profile This profile does the following: - it enables the elastic apt repo - it also enables the network during installation - finally, it makes sure to exclude the very big package exploitdb-papers, otherwise the iso is too big (~ 6 GB) I'm a bit surprised that we need to enable the network via a preseed file. I thought that it would be enough to just make sure that the installer-purple variant does NOT include the offline profile, but in practice no, it's not enough. --- simple-cdd/profiles/kali-purple.excludes | 3 +++ simple-cdd/profiles/kali-purple.postinst | 18 ++++++++++++++++++ simple-cdd/profiles/kali-purple.preseed | 4 ++++ 3 files changed, 25 insertions(+) create mode 100644 simple-cdd/profiles/kali-purple.excludes create mode 100755 simple-cdd/profiles/kali-purple.postinst create mode 100644 simple-cdd/profiles/kali-purple.preseed diff --git a/simple-cdd/profiles/kali-purple.excludes b/simple-cdd/profiles/kali-purple.excludes new file mode 100644 index 0000000..2870ae3 --- /dev/null +++ b/simple-cdd/profiles/kali-purple.excludes @@ -0,0 +1,3 @@ +# Exclude big packages that are Recommended by defensive tools metapackages. +# Keep this list in sync with kali-meta/debian/control. +exploitdb-papers diff --git a/simple-cdd/profiles/kali-purple.postinst b/simple-cdd/profiles/kali-purple.postinst new file mode 100755 index 0000000..64f09ca --- /dev/null +++ b/simple-cdd/profiles/kali-purple.postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +set -eu + +configure_elastic() { + # Install the elastic archive keyring + wget -q -O- https://artifacts.elastic.co/GPG-KEY-elasticsearch \ + > /etc/apt/keyrings/elastic-keyring.asc + + # Enable the repository + cat >/etc/apt/sources.list.d/elastic.list <