echo -e "\033[31mThis script will roll OpenVas back to Version 5\033[m" echo "Do you want to rollback ? (Y/N)" read install if [[ $install = Y || $install = y ]] ; then echo -e "\033[31m====== Rolling OpenVas back to V5 ======\033[m" apt-get remove --purge greenbone-security-assistant libopenvas6 openvas-administrator openvas-manager openvas-cli openvas-scanner mkdir openvasfix cd openvasfix if [ $(uname -m) == "x86_64" ] ; then #64 bit system wget http://repo.kali.org/kali/pool/main/o/openvas-manager/openvas-manager_3.0.4-1kali0_amd64.deb wget http://repo.kali.org/kali/pool/main/o/openvas-administrator/openvas-administrator_1.2.1-1kali0_amd64.deb wget http://repo.kali.org/kali/pool/main/o/openvas-cli/openvas-cli_1.1.5-1kali0_amd64.deb wget http://repo.kali.org/kali/pool/main/o/openvas-scanner/openvas-scanner_3.3.1-1kali1_amd64.deb wget http://repo.kali.org/kali/pool/main/o/openvas/openvas_1.1_amd64.deb wget http://repo.kali.org/kali/pool/main/g/greenbone-security-assistant/greenbone-security-assistant_3.0.3-1kali0_amd64.deb wget http://repo.kali.org/kali/pool/main/libo/libopenvas/libopenvas5_5.0.4-1kali0_amd64.deb else #32 bit system wget http://repo.kali.org/kali/pool/main/o/openvas-manager/openvas-manager_3.0.4-1kali0_i386.deb wget http://repo.kali.org/kali/pool/main/o/openvas-administrator/openvas-administrator_1.2.1-1kali0_i386.deb wget http://repo.kali.org/kali/pool/main/o/openvas-cli/openvas-cli_1.1.5-1kali0_i386.deb wget http://repo.kali.org/kali/pool/main/o/openvas-scanner/openvas-scanner_3.3.1-1kali1_i386.deb wget http://repo.kali.org/kali/pool/main/o/openvas/openvas_1.1_i386.deb wget http://repo.kali.org/kali/pool/main/g/greenbone-security-assistant/greenbone-security-assistant_3.0.3-1kali0_i386.deb wget http://repo.kali.org/kali/pool/main/libo/libopenvas/libopenvas5_5.0.4-1kali0_i386.deb fi dpkg -i * apt-get install gsd kali-linux kali-linux-full wget --no-check-certificate https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup chmod +x openvas-check-setup ./openvas-check-setup --v5 else echo -e "\e[32m[-] Ok,maybe later !\e[0m" fi echo -e "\e[32m[-] Done!\e[0m"