Last active
August 29, 2015 14:06
-
-
Save vekexasia/555eaed178bc6e016232 to your computer and use it in GitHub Desktop.
Fix Bash Bug 'Shell Shock' ubuntu
This file contains 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
sudo apt-get -y install build-essential | |
mkdir src | |
cd src | |
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz | |
#download all patches | |
for i in $(seq -f "%03g" 0 25); do wget http://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i; done | |
tar zxvf bash-4.3.tar.gz | |
cd bash-4.3 | |
#apply all patches | |
for i in $(seq -f "%03g" 0 25);do patch -p0 < ../bash43-$i; done | |
#build and install | |
./configure && make && sudo make install | |
cd .. | |
cd .. | |
rm -r src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shouldnt the sequence be
$(seq -f "%03g" 1 30)
by now?See http://superuser.com/questions/816787/how-do-i-patch-the-shellshock-vulnerability-on-an-obsolete-ubuntu-system-that-i/816807#816807