← Learn
Dangerous
echo '* * * * * /tmp/.update' | crontab -

linux · bash · Intermediate

Replaces the user's crontab with a job that runs a hidden file in /tmp every minute. Two details give it away: the leading dot hides the target from a plain ls, and piping into crontab - overwrites any existing schedule rather than adding to it.

Signals to notice

  • Schedules execution of a dot-hidden file
  • Runs from a world-writable directory
  • Overwrites the existing crontab

Think you can spot these under time pressure?

Start Training

More Persistence