by rbut · 10y ago · 0 comments
While we are on the topic of copying and pasting. If the command downloads a script, make sure you download the script out-of-step via curl first, review its contents, and only then execute it. This avoids sites maliciously changing the script based on the User Agent.
To solve this, browsers should probably disallow modifying the clipboard .
curl -sL http://example.com/install.sh | less -eK && \
curl -sL http://example.com/install.sh | bash