[root@node1 ]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@node1 ]# bash --version
GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
检测是否有bash漏洞
[root@node1 system]# env x='() { :;}; echo be careful' bash -c "echo this is a test"
this is a test
# 出现上述表示正常
[root@node1 system]# env x='() { :;}; echo be careful' bash -c "echo this is a test"
be careful
this is a test
# 表示存在漏洞,需尽快修复