爱程序网

bash 的漏洞,你们中招了吗?

来源: 阅读:

http://threatpost.com/major-bash-vulnerability-affects-linux-unix-mac-os-x

检测:

$ env x='(){:;}; echo vulnerable' bash -c "echo this is a test"

 

中招的显示:

vulnerable
this is a test

 

如果是没有问题,则是下面

$ env x='(){:;}; echo vulnerable' bash -c "echo this is a test"
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test

 

关于爱程序网 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助