3 ms·
Hey let's just sudo curl | bash what could possibly go wrong?
by walrus01 6y ago
Hey let's just sudo curl | bash
what could possibly go wrong?
- thombles 6y agoNot sure if serious, but I will point out this is significantly different. If I'm installing an application like homebrew or the Rust toolchain then I am explicitly giving them the right to code execution. It doesn't much matter whether they get it through the script on their website or the binaries downloaded from that website. Random libraries, possibly pulled in by a dependency of a dependency of a dependency... not so much.
- hda2 6y agoI know this is besides the point, but rust can be installed - without piping the output of a public-facing server into a privileged shell - by using their offline installer: https://forge.rust-lang.org/infra/other-installation-methods.html#standalone https://forge.rust-lang.org/infra/other-installation-methods... They offer PGP signatures too!
- da_big_ghey 6y agoThat's curl | sudo bash smh what an amateur
- beermonster 6y agoYou even see Microsoft offering those types of install one-liners. e.g. curl -sSL https://dot.net/v1/dotnet-install.sh https://dot.net/v1/dotnet-install.sh | bash /dev/stdin <additional install-script args> See https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-in... There are other examples I've seen from time to time.