by dfc · 14y ago · 0 comments
curl -s -L http://nodejs.org/some-script.sh |sh
I have never understood why people install software like that. I can not remember which project it is that uses this in the installation.apt-get:
$ ls -l /etc/apt/trusted.gpg.d/
Source Installation: $ wget http://nmap.org/dist/sigs/nmap-6.01.tgz.asc
$ wget http://nmap.org/dist/nmap-6.01.tgz
$ gpg nmap-6.01.tgz.ascDistributing a hash check over HTTPS would offer some protection against man in the middle style attacks, to the extent that TLS protects against man in the middle attacks, but accomplishes nothing if the server has been compromised.
Distributing a signature of the download gives stronger protection, because the private key can be kept offline and encrypted except when in use. Breaking into a server and overwriting a few files is easier than breaking into someone's laptop in the brief moment where they unlock their keypair to sign a release.