logoalt Hacker News

tuhgdetzhhlast Sunday at 3:13 PM5 repliesview on HN

I'm always a bit shocked how casual people people wget and execute shell scripts as part of their install process.

This is the equivalent of giving an author of a website remote code execution (RCE) on your computer.

I get the idea that you can download the script first and carefully read it, but I think that 99% of people won't.


Replies

stousetlast Sunday at 8:24 PM

I’m always a bit shocked how seriously people take concerns over the install script for a binary executable they’re already intending to trust.

show 2 replies
VMGlast Sunday at 7:19 PM

The thing that gets installed, if it is an executable, usually also has permissions to do scary things. Why is the installation process so scrutinized?

show 2 replies
balder1991last Sunday at 3:28 PM

Even assuming it’s not malicious, the script can mess up your environment configuration.

show 2 replies
OptionOfTlast Sunday at 5:16 PM

Equally I don't like how many instructions and scripts everywhere use shorthands.

Sometimes you see curl -sSLfO. Please, use the long form. It makes life easier for everybody. It makes it easier to verify, and to look up. Finding --silent in curl's docs is easier than reading through every occurrence of -s.

   curl --silent --show-error --location --fail --remote name https://example.com/script.sh
Obligatory xkcd: https://xkcd.com/1168/
show 5 replies
zenlotlast Sunday at 3:41 PM

If you don't trust the software, don't install it.

show 1 reply