Created Scheduled Scans (markdown)

xer0dayz 2019-08-31 10:29:42 -07:00
parent fc656ad309
commit 9aace0b1eb
1 changed files with 10 additions and 0 deletions

10
Scheduled-Scans.md Normal file

@ -0,0 +1,10 @@
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!