orchestrator.sh (launcher script)
Description
The orchestrator.sh script is a launcher for running:
“dynamic” threat hunting analytics (e.g., vulnerable_driver_name_detected_loldriver.py),
campaign.sh, and
Below is the code of this launcher:
#!/bin/bash
source /data/venv/bin/activate
cd /data/deephunter/
/data/venv/bin/python3 manage.py runscript vulnerable_driver_name_detected_loldriver
/data/venv/bin/python3 manage.py runscript campaign
/data/venv/bin/python3 manage.py runscript review
deactivate
campaign.py: Daily campaigns script, started from
orchestrator.sh. It relies on therunscriptcommand of thedjango-extensionspackage.
Crontab
It is recommended to schedule it using cron jobs to automate the backup process. An example is shown below.
# m h dom mon dow command
1 0 * * * /data/deephunter/qm/scripts/orchestrator.sh