Why using curl | sudo sh is not advised?

前端 未结 2 1551
梦如初夏
梦如初夏 2021-01-04 12:31

While I was reading the introduction to the Rust programming language, I came across the installation method which asks to use the following command

curl -sf         


        
2条回答
  •  情话喂你
    2021-01-04 13:14

    Because you are giving root access to whatever script you are executing. It can do a wide variety of nasty things.

    If Rust site is ever compromised and that script gets a tiny piece that installs malware silently, you wouldn't know, without inspecting the script first.

提交回复
热议问题