@ -36,6 +36,7 @@ function pretty_name() {
case ${SIMPLE_NAME} in
elementary) PRETTY_NAME="elementary OS";;
freebsd) PRETTY_NAME="FreeBSD";;
kali) PRETTY_NAME="Kali";;
linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";;
linuxmint-mate) PRETTY_NAME="Linux Mint MATE";;
linuxmint-xfce) PRETTY_NAME="Linux Mint XFCE";;
@ -110,6 +111,7 @@ function os_support() {
echo elementary \
freebsd \
fedora \
kali \
kubuntu \
linuxmint-cinnamon \
linuxmint-mate \
@ -143,6 +145,11 @@ function releases_fedora(){
35_beta
}
function releases_kali() {
echo latest \
weekly
}
function releases_linuxmint(){
echo 20.2
}
@ -520,6 +527,9 @@ function make_vm_config() {
elif [ "${OS}" == "fedora" ]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == *"kali"* ]]; then
GUEST="linux"
IMAGE_TYPE="iso"
elif [[ "${OS}" == *"linuxmint"* ]]; then
GUEST="linux"
IMAGE_TYPE="iso"
@ -622,6 +632,27 @@ function get_fedora() {
make_vm_config "${ISO}"
}
function get_kali() {
local HASH=""
local ISO=""
local URL=""
local SUBDIR=""
validate_release "releases_kali"
if [[ "${RELEASE}" == "latest" ]]; then
SUBDIR="current"
else
SUBDIR="kali-weeekly"
fi
ISO=$(wget -q -O- "https://cdimage.kali.org/${SUBDIR}/?C=M;O=D" |grep -o ">kali-linux-.*-installer-amd64.iso"|head -n 1|cut -c 2-)
HASH=$(wget -q -O- "https://cdimage.kali.org/${SUBDIR}/SHA256SUMS" | grep "${ISO}" | cut -d' ' -f1)
URL="https://cdimage.kali.org/${SUBDIR}/${ISO}"
web_get "${URL}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
}
function get_linuxmint() {
local FLAVOR=""
local HASH=""
@ -900,6 +931,8 @@ if [ -n "${2}" ]; then
get_freebsd
elif [ "${OS}" == "fedora" ]; then
get_fedora
elif [ "${OS}" == "kali" ]; then
get_kali
elif [[ "${OS}" == *"linuxmint"* ]]; then
get_linuxmint
elif [ "${OS}" == "openbsd" ]; then
@ -951,6 +984,8 @@ else
releases_freebsd
elif [ "${OS}" == "fedora" ]; then
releases_fedora
elif [ "${OS}" == "kali" ]; then
releases_kali
elif [[ "${OS}" == *"linuxmint"* ]]; then
releases_linuxmint
elif [ "${OS}" == "opensuse" ]; then