Last active
August 29, 2015 14:06
-
-
Save eraclitux/da485cef1243e69c3585 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Check for CVE-2014-6271 vulnerability | |
| env x='() { :;}; echo vulnerable' bash -c "Checking..." 2> /dev/null | grep -q vulnerable; | |
| if [ $? -eq 0 ]; then | |
| echo "Vulnerable!" | |
| exit 0 | |
| fi | |
| echo "Not vulnerable!" | |
| exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment