Skip to content

Scheduled Scans

xer0dayz edited this page Aug 31, 2019 · 2 revisions

To initialize scheduled scans, edit your crontab via the crontab -e command as 'root' and add the following to your crontab:

# m h dom mon dow command
0 0 * * * find /usr/share/sniper/loot/workspace/ -type f -name "daily.sh" -exec bash {} \;
0 0 * * 0 find /usr/share/sniper/loot/workspace/ -type f -name "weekly.sh" -exec bash {} \;
0 0 1 * * find /usr/share/sniper/loot/workspace/ -type f -name "monthly.sh" -exec bash {} \;

After your crontab is setup properly, you can simply run the sniper -w <workspace_alias> -s daily|weekly|monthly command to edit the workspace’s scheduled commands. Just add the full sniper commands you want to run on a schedule (ie. sniper -t 127.0.0.1 -w 127.0.0.1) and save. That’s it!