站長資訊網(wǎng)
        最全最豐富的資訊網(wǎng)站

        CentOS如何升級(jí)Bash(修復(fù)破殼漏洞)

        下面由centos教程欄目給大家介紹CentOS 升級(jí) Bash — 修復(fù)破殼漏洞 ,希望對(duì)需要的朋友有所幫助!

        CentOS如何升級(jí)Bash(修復(fù)破殼漏洞)

        因?yàn)楹芏喙径加凶约旱?yum 源,所以直接配置其他的 yum 源升級(jí)的話是不允許的,為了能方便的升級(jí),并且安全的測(cè)試,先拿一臺(tái)測(cè)試機(jī)做測(cè)試。

        CentOS 的修復(fù)方案

        安裝 yum 插件 yum-downloadonly

        注: yum-downloadonly 插件的作用是實(shí)現(xiàn)只下載所需包而不直接安裝

        sudo yum -y install yum-downloadonly

        添加 CentOS 的官方源 CentOS-Base.repo

        CentOS 5 的官方源

        # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the  # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #released updates  [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

        CentOS 6 的官方源

        # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the  # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #released updates  [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

        下載最新的 bash 包

        把最新版本的 bash 的 rpm 包下載到 /tmp 目錄

        sudo  yum -y install --downloadonly --downloaddir=/tmp/ bash

        下載后的包名分別如下:

        CentOS 5

        bash-3.2-33.el5_10.4.x86_64.rpm

        CentOS 6

        bash-4.1.2-15.el6_5.2.x86_64.rpm

        安裝最新的 bash 包

        CentOS 5

        sudo yum -y install bash-3.2-33.el5_10.4.x86_64.rpm

        CentOS 6

        sudo yum -y install bash-4.1.2-15.el6_5.2.x86_64.rpm

        驗(yàn)證

        env X='() { (a)=>' sh -c "echo date"; cat echo 輸出如下:

        date Mon Sep 29 10:11:56 CST 2014

        env VAR='() { :;}; echo Bash is vulnerable!' bash -c "echo Bash Hello" 輸出如下:

        Bash Hello

        證明修復(fù)成功

        加入現(xiàn)有的 rpm 源

        最后一步就是把測(cè)試完成的包加入公司自己的源中,然后全網(wǎng)推送了。

        贊(0)
        分享到: 更多 (0)
        網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)
        主站蜘蛛池模板: 久久精品无码av| 日韩国产成人精品视频| 亚洲AV无码成人精品区大在线| 91精品国产9l久久久久| 色偷偷88欧美精品久久久| 成人精品一区二区三区在线观看| 国产国拍亚洲精品mv在线观看 | 国产精品久久久久影院色| 国产精品视频二区不卡| 亚洲精品视频免费观看| 国产午夜精品久久久久九九| 亚洲欧美精品伊人久久| 国产cosplay精品视频| 无码人妻精品一区二区三区久久久| 久久久久久无码国产精品中文字幕 | 亚洲精品无码高潮喷水在线| 精品无人区无码乱码毛片国产 | 动漫精品专区一区二区三区不卡| 亚洲高清国产AV拍精品青青草原| 久久久久99精品成人片牛牛影视| 真实国产乱子伦精品免费| 91在线视频精品| 久久99国产综合精品| 午夜精品射精入后重之免费观看 | 亚洲欧美日韩国产成人精品影院| 九九热这里只有国产精品| 国产乱码伦精品一区二区三区麻豆| 欧美+亚洲+精品+三区| 国产精品国产精品国产专区不卡| 精品不卡一区二区| 日韩国产精品无码一区二区三区| 四虎国产精品永久在线观看| 永久无码精品三区在线4| 无码欧精品亚洲日韩一区夜夜嗨| 久久这里只有精品视频99| 拍国产乱人伦偷精品视频| 青娱乐国产精品视频| 老司机午夜网站国内精品久久久久久久久| 99热日韩这里只有精品| 国产精品福利片免费看 | 亚洲国产成人精品无码久久久久久综合|