Linux下Bash严重漏洞补丁升级方法

2014年09月26日
env t='() { :;}; echo You are vulnerable.' bash -c "true"

 
在终端命令行中运行以上代码,如果提示“You are vulnerable”,请马上打上被丁.

Ubuntu or Debian 请执行

apt-get update -y
apt-get upgrade -y

 

RedHat, CentOS or Fedora 请执行

yum clean all
yum -y update bash
yum update -y

 

编译升级bash

wget https://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
tar zxf bash-4.3.tar.gz ; cd bash-4.3
wget -r -nd -np https://ftp.gnu.org/gnu/bash/bash-4.3-patches/
for BP in `ls bash43-*|grep -v sig`; do patch -p0 < $BP; done
./configure
make && make install

 

为了及时升级系统补丁,所以我们可以写一个升级脚本放在crond定时任务里边.
https://www.myzhenai.com.cn/post/1628.html https://www.myzhenai.com/thread-16044-1-1.html

 


sicnature ---------------------------------------------------------------------
Your current IP address is: 44.201.59.20
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://www.myzhenai.com/post/1883.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注