Skip to content

Commit

Permalink
Add Kali Linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay committed Oct 16, 2023
1 parent 7e0ff29 commit 850e418
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
Empty file added Kali_latest_TUI/README.md
Empty file.
38 changes: 38 additions & 0 deletions Kali_latest_TUI/run_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash -x
# BASE IMAGE: Kali Linux rolling (latest)
# The script should not require any user input and should be idempotent.

. ../prelude.sh

# TODO - make this a function, use variables, execute os-release as a script
if ! grep 'PRETTY_NAME="Kali GNU/Linux Rolling"' /etc/os-release; then
echo 'Error: The base image does not match "Kali GNU/Linux Rolling"! Aborting.'
exit ${EXIT_INCORRECT_PLATFORM}
fi

# TODO remove resp. rename the script directory
# if ! uname -r | grep "WSL2"; then
# echo "Warning: The base image probably does not run in WSL."
# exit 2
# fi

if gnome-extensions --version; then
# TODO - Kali desktop installer
echo 'Use Kali Desktop installer (TODO)'
echo 'This script is targeted only to CLI installations'
exit ${EXIT_INCORRECT_PLATFORM}
fi

# Run stuff that requires user input first (if not turned off by `--noninteractive`)
. ../WSL_Ubuntu_22.04/interactive_part.sh

# Let's try to keep the Ubuntu install script Debian compatible

. ../WSL_Ubuntu_22.04/packages_install.sh

. ../WSL_Ubuntu_22.04/configs_install.sh

# TODO create kali_specific_packages.sh
. debian_specific_packages.sh # last, because some packages are built from source

# . ../WSL_Ubuntu_22.04/packages_install_optional.sh
2 changes: 2 additions & 0 deletions Windows_10/wsl_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ wsl --install --distribution Debian --no-launch
# TODO add remaining WSL setup here (e.g. mounting of Windows FS)
# - wsl - mount windows FS there?

# TODO - try installing WSL distros via winget (maybe it will be less interactive)
# TODO add Kali linux WSL
Set-PSDebug -Trace 0
1 change: 1 addition & 0 deletions run_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ try_platform "WSL_Debian_12" "$1"
try_platform "Ubuntu_22.04" "$1"
try_platform "PopOS_22.04" "$1"
try_platform "Android_13" "$1"
try_platform "Kali_latest_TUI" "$1"

echo -e "${RED}run_init.sh: Fatal error - Unsupported platform " \
"- no supported platform detected.${NC}" \
Expand Down

0 comments on commit 850e418

Please sign in to comment.