Friday, September 26, 2014

bash update for centos 6 i386 and x64 cpanel

check your existing bash:
env X="() { :;} ; echo shellshock" /bin/sh -c "echo completed"
env X="() { :;} ; echo shellshock" `which bash` -c "echo completed"
for non-cpanel server you can easily run:
‪#‎yum‬ update bash

for cpanel server:
you will face this problem:
root@cp6 [~]# yum update bashLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * epel: ftp.cuhk.edu.hk * extras: centos.exabytes.com.my
Setting up Update ProcessNo Packages marked for Update

Solution x64:

for i386:
wget http://centos.ipserverone.com/centos/6/updates/i386/Packages/bash-4.1.2-15.el6_5.1.i686.rpmrpm -Uvh bash-4.1.2-15.el6_5.1.i686.rpm

for centos 5 i386:
http://centos.ipserverone.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5.1.i386.rpm
Centos 5 x64:
http://centos.ipserverone.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5.1.x86_64.rpm
Related Posts Plugin for WordPress, Blogger...