Update Sat Oct 17 10:29:47 PM CDT 2020
This commit is contained in:
parent
90533c7652
commit
adb8106156
|
|
@ -234,6 +234,28 @@ fix_grub () {
|
||||||
fi
|
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 () {
|
make_rootgreatagain () {
|
||||||
echo -e "\n KALI-ROOT-LOGIN INSTALLATION: "$red"*** READ CAREFULLY! ***"$white" \n"
|
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"
|
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"
|
echo -e "\n $redstar A reboot of your system is required"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vmtools_service_missing (){
|
||||||
|
# think about this one
|
||||||
|
# }
|
||||||
|
|
||||||
check_vm() {
|
check_vm() {
|
||||||
echo -e "\n $greenplus detecting hypervisor type \n"
|
echo -e "\n $greenplus detecting hypervisor type \n"
|
||||||
|
|
@ -498,7 +523,7 @@ check_vm() {
|
||||||
eval restart-vm-tools
|
eval restart-vm-tools
|
||||||
# Additional Fixes for Vmware
|
# Additional Fixes for Vmware
|
||||||
#----------------------- additional vmware fixes
|
#----------------------- additional vmware fixes
|
||||||
# fix goes here
|
# vmtools_service_missing
|
||||||
#----------------------- end of vmware additional fixes
|
#----------------------- end of vmware additional fixes
|
||||||
exit_screen
|
exit_screen
|
||||||
else
|
else
|
||||||
|
|
@ -506,22 +531,6 @@ check_vm() {
|
||||||
fi
|
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
|
# ascii art - DONT move
|
||||||
asciiart=$(base64 -d <<< "H4sIAAAAAAAAA31QQQrCQAy89xVz9NR8QHoQH+BVCATBvQmC
|
asciiart=$(base64 -d <<< "H4sIAAAAAAAAA31QQQrCQAy89xVz9NR8QHoQH+BVCATBvQmC
|
||||||
CEXI480kXdteTJfdzGQy2S3wi9EM/2MnSDm3oUoMuJlX3hmsMMSjA4uAtUTsSQ9NUkkKVgKKBX
|
CEXI480kXdteTJfdzGQy2S3wi9EM/2MnSDm3oUoMuJlX3hmsMMSjA4uAtUTsSQ9NUkkKVgKKBX
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue