And never run commands copied from a web page, even if you do know them.
JavaScriptâs copy/paste API means a website owner or an attacker can change the contents of your clipboard after you press copy, and youâll end up pasting malicious commands into your shell. I think Firefox blocks this now, donât know about Chrome.
tool@lemmy.world âš1â© âšyearâ© ago
âNah, just
curl
this random web address and pipe it over to a sudo bash shell, everything will be fine!âI hate how this is becoming the official install method for more and more shit. Itâs like dude, really? You may as well stick your dick in a garbage disposal, both of those actions are equally safe.
Youâre dreaming if you think Iâm not going to
wget
it and read it to see what it does first.schaeferpp@discuss.tchncs.de âš1â© âšyearâ© ago
To be fair: This is what anyone expects when you install software for Windows. Just download a more or less âgood lookingâ binary blob, execute it with administrative privileges and hope that it will do what you want it to do.
pm_boobs_send_nudes@lemmy.world âš1â© âšyearâ© ago
As a lawyer I feel the same about people not reading contracts and signing stuff or just clicking the accept button. But hey, thatâs just how it is unfortunately.
Crazazy@feddit.nl âš1â© âšyearâ© ago
Even worse is when the bash script you downloaded is only there to do some uname checks and then download and execute more code from the internet
__dev@lemmy.world âš1â© âšyearâ© ago
At least itâs transparent and often doesnât require root, unlike say a debian package.