Skip to content

Instantly share code, notes, and snippets.

@dashr
Last active August 29, 2015 14:06
Show Gist options
  • Save dashr/7b66f6485a3ca65074f1 to your computer and use it in GitHub Desktop.
Save dashr/7b66f6485a3ca65074f1 to your computer and use it in GitHub Desktop.
shellshock
#test on command line
$ env VAR='() { :;}; echo Bash is vulnerable!' bash -c "echo Bash Test"
#Fix on ubuntu (debian based)
$ sudo apt-get update && sudo apt-get install --only-upgrade bash
#Fix on CentOS/ Cpanel
$ sudo yum update bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment