Skip to content

Instantly share code, notes, and snippets.

@intfrr
Forked from wilkinson/.bashrc
Last active August 29, 2015 14:06
Show Gist options
  • Save intfrr/758513f53d261c491983 to your computer and use it in GitHub Desktop.
Save intfrr/758513f53d261c491983 to your computer and use it in GitHub Desktop.
# To anyone worried about using servers that may not have attentive admins --
# put the following line(s) in your ~/.bashrc to help protect yourself:
env x='() { :;}; echo "WARNING: SHELLSHOCK DETECTED"' \
bash --norc -c ':' 2>/dev/null;
# It will print to stdout if and only if your shell is vulnerable, and nothing
# will be printed if your shell has been patched. It will take a little longer
# to launch a new shell slightly, but for some, this may be worth it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment