2
Scheduled Scans
xer0dayz edited this page 2019-08-31 10:30:54 -07:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 workspaces 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. Thats it!