A simple Python health check, designed for active monitoring of CTF assets
THIS WILL FAIL if you run it as-is. Setup is required.
- Determine what online assets you want to check, what command you'll use, and what expected output is
- Put entries into checks.json for each asset you're checking:
- name should be something descriptive or meaningful to you
- cmd is the command that Python will
subprocess.check_output()
- expect is a string that should come out of the cmd to STDOUT when the asset is healthy
- Ensure any PEM or other files needed for checks are in the working directory of rctfok.py
python3 rctfok.py
and watch for red output
_____ _____ _______ ______ ____ _ _____
| __ \ / ____|__ __| ____| / __ \| |/ /__ \
| |__) | | | | | | |__ | | | | ' / ) |
| _ / | | | | | __| | | | | < / /
| | \ \ | |____ | | | | | |__| | . \ |_|
|_| \_\ \_____| |_| |_| \____/|_|\_\(_)