<< Back To Horriblel index page !

PSA: Never Pipe Stuff Into Root Shell


If you have used Linux for some time, you have likely ran a command that looks something like this:

curl https://some.random.web.site/script | sudo bash

But what if I told you...

that running such a command is DANGEROUS and PUTS YOUR SYSTEM AT RISK?????????

Why you might be putting your systme at risk

Well, the script you're executing might contain literally any commands. So an attacker might put rm -rf / (which is a command I definitely do not recommend running!) in the script and pai pai system forever!

What you can do about this

One word:

read

Instead of running some random commands on your system, take some time out of your day to actually read the script and review what it's doing. It'll take like ten minutes at most anyway.

Don't Put Your System At Risk! Think Before You Type !