← Learn
Dangerous
curl -s https://example.com/install.sh | sudo bash

cross-platform · bash · Beginner

Downloads a script and runs it as root without anyone reading it first. Whatever the server returns at that moment executes with full privileges, and the server can return something different to you than to the person who recommended it.

Signals to notice

  • remote content is piped straight into a shell
  • sudo runs the downloaded script as root
  • nothing inspects the script between download and execution

Think you can spot these under time pressure?

Start Training

More Shell