Skip to content

Instantly share code, notes, and snippets.

@jamesattard
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save jamesattard/6014a2a738e4b89bebf1 to your computer and use it in GitHub Desktop.

Select an option

Save jamesattard/6014a2a738e4b89bebf1 to your computer and use it in GitHub Desktop.
╭─james@darktech ~
╰─$ sudo yum install bash -y
Resolving Dependencies
--> Running transaction check
---> Package bash.x86_64 0:4.2.47-3.fc20 will be updated
---> Package bash.x86_64 0:4.2.47-4.fc20 will be an update
--> Finished Dependency Resolution
..
..
Complete!
╭─james@darktech ~
╰─$ env X="() { :;} ; echo Vulnerable" /bin/sh -c "echo hello world"
/bin/sh: warning: X: ignoring function definition attempt
/bin/sh: error importing function definition for `X'
hello world
╭─james@darktech ~
╰─$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment