From adb810615680c8805c39830bd5f711cf718269f2 Mon Sep 17 00:00:00 2001 From: Dewalt <> Date: Sat, 17 Oct 2020 22:29:47 -0500 Subject: [PATCH] Update Sat Oct 17 10:29:47 PM CDT 2020 --- pimpmykali.sh | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/pimpmykali.sh b/pimpmykali.sh index 2d952ae..40b8cef 100755 --- a/pimpmykali.sh +++ b/pimpmykali.sh @@ -234,6 +234,28 @@ fix_grub () { fi } +fix_bad_apt_hash (){ + mkdir -p /etc/gcrypt + echo "all" > /etc/gcrypt/hwf.deny + } + +fix_sources () { + # Think about doing something different here... + fix_bad_apt_hash + echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list + echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >>/etc/apt/sources.list + echo -e "\n $greenplus fixed sources /etc/apt/sources.list" + } + +run_update () { + fix_sources + echo -e "\n $greenplus starting pimpmyupgrade \n" + eval apt -y update $silent && apt -y upgrade $silent + kernel_check=$(ls /lib/modules | sort -n | tail -n 1) + echo -e "\n $greenplus installing dkms build-essential linux-headers-$kernel_check \n" + eval apt -y install dkms build-essential linux-headers-amd64 $silent + } + make_rootgreatagain () { echo -e "\n KALI-ROOT-LOGIN INSTALLATION: "$red"*** READ CAREFULLY! ***"$white" \n" echo -e " On Kali 2019.x and prior the default user was root" @@ -473,6 +495,9 @@ fix_virtualbox() { echo -e "\n $redstar A reboot of your system is required" } +# vmtools_service_missing (){ +# think about this one +# } check_vm() { echo -e "\n $greenplus detecting hypervisor type \n" @@ -498,7 +523,7 @@ check_vm() { eval restart-vm-tools # Additional Fixes for Vmware #----------------------- additional vmware fixes - # fix goes here + # vmtools_service_missing #----------------------- end of vmware additional fixes exit_screen else @@ -506,22 +531,6 @@ check_vm() { fi } -fix_sources () { - # Think about doing something different here... - echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list - echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >>/etc/apt/sources.list - echo -e "\n $greenplus fixed sources /etc/apt/sources.list" - } - -run_update () { - fix_sources - echo -e "\n $greenplus starting pimpmyupgrade \n" - eval apt -y update $silent && apt -y upgrade $silent - kernel_check=$(ls /lib/modules | sort -n | tail -n 1) - echo -e "\n $greenplus installing dkms build-essential linux-headers-$kernel_check \n" - eval apt -y install dkms build-essential linux-headers-amd64 $silent - } - # ascii art - DONT move asciiart=$(base64 -d <<< "H4sIAAAAAAAAA31QQQrCQAy89xVz9NR8QHoQH+BVCATBvQmC CEXI480kXdteTJfdzGQy2S3wi9EM/2MnSDm3oUoMuJlX3hmsMMSjA4uAtUTsSQ9NUkkKVgKKBX