在linux系統中掃描bash漏洞的方法
1.首先,在linux命令行中執行以下命令掃描bash漏洞;
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
2.命令執行后,查看輸出結果,如輸出結果為以下信息
vulnerable this is a test
vulnerable
this is a test
則說明系統存在bash漏洞;