CSCI-4830-002-2014 / mailinglist

A special repository to act like a mailing list, for announcement, general discussion, etc. Assignment-specific issues should still go to the individual repository.
2 stars 0 forks source link

Patching Shellshock #1

Open wannabeCitizen opened 10 years ago

wannabeCitizen commented 10 years ago

I know not everyone is on here yet, but I know a few students have talked to me about the new exploit found in bash - shellshock.

There is already a fix available for Mac (as well as Linux) and you can find it here: https://shellshocker.net/#fix

ianks commented 10 years ago

Nice good looks. You can also always get the newest version of bash using Homebrew.

I will also make a plug for ZSH shell. I have found it to be much more user friendly an absolute blast to work with. If you guys haven't checked it out yet, I would suggest giving it a shot. I'll give some instruction for Mac users, but this can easily be applied to Linux as well (just use apt-get instead of brew).

Steps:

  1. Download Homebrew
    • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Install ZSH
    • brew install zsh
  3. Add some out the box functionality with zprezto(integration with git, color themes, syntax highlighting, etc)
    • zsh
    • git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
    • setopt EXTENDED_GLOB for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" done

Now, if you like what you see, you can make ZSH your default shell (optional):

If you trust me, I have a Dotfiles repo with all of this preconfigured: https://github.com/ianks/dotfiles