Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. $ env 'x=() { :;}; echo vulnerable' 'BASH_FUNC_x()=() { :;}; echo vulnerable'
  2.  
  3. bash -c "echo test"
  4.  
  5. vulnerable
  6. bash: BASH_FUNC_x(): line 0: syntax error near unexpected token `)'
  7. bash: BASH_FUNC_x(): line 0: `BASH_FUNC_x() () { :;}; echo vulnerable'
  8. bash: error importing function definition for `BASH_FUNC_x'
  9. test
  10.  
  11. bash: warning: x: ignoring function definition attempt
  12. bash: error importing function definition for `BASH_FUNC_x'
  13. test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement