CentOS Linux下修复bash漏洞教程
时间:2021-04-25日 来源: 作者: 
今天一打开电脑,就发现群里再说bash漏洞的事情,马上搜了下,发现居然比心血漏洞还要严重,好吧,看来今天又有事情要做了.
系统:centos5.x
	1.检测你服务器是否需要修复
	 
		复制代码
	代码如下:
	
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
如果输出是vulnerable就要升级bash了.
	
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
如果输出是vulnerable就要升级bash了.
	2.升级bash
	 
		复制代码
	代码如下:
	
yum -y update bash
如果是centos6的服务器,yum完后请先执行/sbin/ldconfig,然后不行再重启服务器.
	
yum -y update bash
如果是centos6的服务器,yum完后请先执行/sbin/ldconfig,然后不行再重启服务器.
	3.验证
	 
		复制代码
	代码如下:
	
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
如果报下面几行,就表示你的bash没有漏洞了:
	
 
 
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
如果报下面几行,就表示你的bash没有漏洞了:
		复制代码
	代码如下:
	
bash: warning: x: ignoring function definition attempt</p> <p>bash: error importing function definition for `x'</p> <p>this is a test
好了,各位要不要升级就要看你们的上面那位是否批准了.
bash: warning: x: ignoring function definition attempt</p> <p>bash: error importing function definition for `x'</p> <p>this is a test
好了,各位要不要升级就要看你们的上面那位是否批准了.
相关文章
推荐文章
热门文章
