Skip to content

Instantly share code, notes, and snippets.

@ryanfitton
Created September 26, 2014 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanfitton/a252985f752614eb7490 to your computer and use it in GitHub Desktop.
Save ryanfitton/a252985f752614eb7490 to your computer and use it in GitHub Desktop.
Ubuntu Bash 'Shell Shock' vulnerability patch for Debian/Ubuntu systems
#Test:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
#Run:
apt-get update && apt-get install -y bash
#Test again:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
#If it does not say 'vulnerable' then the patch has been applied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment