CTF Arsenal
Boot2Root / Command Mistakes & Recovery

Cron privesc payload never fires — edited the wrong file

1. Error or symptom

You edited a script to add a payload, but no privileged execution ever happens.

2. Likely cause

The cron job actually runs a different copy/symlink than the one you edited, or the job was already removed.

3. How to verify

Use pspy to confirm, in real time, the exact absolute path being executed.

4. Correct command

./pspy64

5. Recovery procedure

Re-edit the exact path pspy reports, not the one assumed from crontab text alone.

6. How to avoid repeating it

Confirm live execution with pspy before trusting a static crontab listing.