### 昨天還說的傳說要從新出補丁,今天就都出來了,基本操做一致就是測試結果不同,繼續修復 Debian7 wheezy版本的bash漏洞,以下操做:centos
一、測試是否須要升級bash
# env x='() { :;}; echo vulnerable' bash -c "echo this is a test" #顯示以下,須要升級服務器
vulnerable
ide
this is a test測試
二、離線升級ui
### 好多服務器不能出外網,只能下載了升級了this
# wget http://security.debian.org/debian-security/pool/updates/main/b/bash/bash_4.2+dfsg-0.1+deb7u3_amd64.debspa
# dpkg -i bash_4.2+dfsg-0.1+deb7u3_amd64.deborm
(Reading database ... 38868 files and directories currently installed.)ip
Preparing to replace bash 4.2+dfsg-0.1+deb7u1 (using bash_4.2+dfsg-0.1+deb7u3_amd64.deb) ...
Unpacking replacement bash ...
Setting up bash (4.2+dfsg-0.1+deb7u3) ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
Processing triggers for man-db ...
# dpkg -l bash # 查看升級後的版本
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================-===============-===============-===============================================
ii bash 4.2+dfsg-0.1+de amd64 GNU Bourne Again SHell
ii bash 4.2+dfsg-0.1+de amd64 GNU Bourne Again SHell
# env x='() { :;}; echo vulnerable' bash -c "echo this is a test" # 顯示變化了以下,升級完成
this is a test
三、傳說別繼續了……