[root@oldboy ~]# bash --version
GNU bash, 版本 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
许可证 GPLv3+: GNU GPL 许可证版本3或者更高 <http://gnu.org/licenses/gpl.html>
这是自由软件,您可以自由地更改和重新发布。
在法律允许的范围内没有担保.</code></pre>
<blockquote>
<p>检测系统是否存在漏洞:</p>
</blockquote>
<pre class="blockcode"><code>[root@oldboy ~]# env x='() { :;}; echo be careful' bash -c "echo this is a test"
this is a test</code></pre>
<blockquote>
<p>如果返回如下两行,则表示需要尽快升级 <code>bash</code> 了:</p>
</blockquote>
<pre class="blockcode"><code>be careful
this is a test</code></pre>
<blockquote>
<p>升级方法为:</p>
</blockquote>
<pre class="blockcode"><code>[root@oldboy ~]# yum -y update bash