env x='() { :;}; echo vulnerable' bash -c 'echo hello'If you're not vulnerable, you'll get this result:
bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x' helloIf you are vulnerable, you'll get:
vulnerable helloYou can also check the version of bash you're running by entering:
bash --versionweb