Dental Articles - Edmonton
How To Check If Your Linux Is Vulnerable to Shellshock
Posted by negraru on Sat, 27 Sep 2014
How To Check If Your Linux Is Vulnerable to Shellshock
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 --version
Designer Edmonton