#!/bin/bash # Shellshock Vulnerability Tester Script # Original shellshock-cheker script (C) by coyotus # Under licence GPLv3 http://www.gnu.org/licenses/gpl.txt # optional required "zenity" echo ''' .__ .__ .__ .__ __ .__ __ _____| |__ ____ | | | | _____| |__ ____ ____ | | __ ____ | |__ ____ ____ | | __ ___________ / ___/ | \_/ __ \| | | | / ___/ | \ / _ \_/ ___\| |/ / ______ _/ ___\| | \_/ __ \_/ ___\| |/ // __ \_ __ \ \___ \| Y \ ___/| |_| |__\___ \| Y ( <_> ) \___| < /_____/ \ \___| Y \ ___/\ \___| <\ ___/| | \/ /____ >___| /\___ >____/____/____ >___| /\____/ \___ >__|_ \ \___ >___| /\___ >\___ >__|_ \\___ >__| \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ ''' red='\e[0;31m' green='\e[0;32m' NC='\e[0m' if env x='() { :;}; echo vulnerable' bash -c "echo -n" | grep vulnerable > /dev/null 2>&1 ; then echo -e "[$red*$NC] Your system is$red vulnerable $NC" zenity --error --text "Your system is vulnerable Information" elif $(env x='() { (a)=>\' bash -c "echo echo vuln"; [[ "$(cat echo)" == "vuln" ]] && echo "Toujours vulnerable") | grep vulnerable ; then echo -e "[$red*$NC] Your system is$red vulnerable $NC" zenity --error --text "Your system is vulnerable Information" else echo -e "[$green*$NC] Your system is$green secure $NC" zenity --info --text "Your system is secure" fi