Last active
August 29, 2015 14:07
-
-
Save coffeemakr/4fc4b8ab6c3f3b9af9f4 to your computer and use it in GitHub Desktop.
Bash test
This file contains 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/bash | |
env x='() { :;}; echo "ERROR: CVE-2014-6271 vulnerable, ShellShock"' bash -c "echo -n\"\"" | |
foo='() { echo "ERROR: CVE-2014-6278 vulnerable"; }' bash -c foo 2> /dev/null | |
rm -f bash_vulnerable | |
X='() { function a a>\' bash -c bash_vulnerable | |
[ -e bash_vulnerable ] && echo "ERROR: CVE-2014-7169 vulnerable" | |
bash -c 'true <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF' || echo "ERROR: CVE-2014-7186 vulnerable, redir_stack" | |
(for x in {1..200} ; do echo "for x$x in ; do :"; done; for x in {1..200} ; do echo done ; done) | bash || echo "ERROR: CVE-2014-7187 vulnerable, word_lineno" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment