Articles & Code Snippets


How To Check If Your Linux Is Vulnerable to Shellshock

How To Check If Your Linux Is Vulnerable to Shellshock


You can test your system by running this test command from Terminal:
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' hello
If you are vulnerable, you'll get:
vulnerable hello
You can also check the version of bash you're running by entering:
bash --version
web


Archives