Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.01 KB

README.md

File metadata and controls

24 lines (20 loc) · 1.01 KB

CTFUpChecker

A simple Python health check, designed for active monitoring of CTF assets

Setup

THIS WILL FAIL if you run it as-is. Setup is required.

  1. Determine what online assets you want to check, what command you'll use, and what expected output is
  2. 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
  1. Ensure any PEM or other files needed for checks are in the working directory of rctfok.py

Running

python3 rctfok.py and watch for red output

  _____     _____ _______ ______    ____  _  _____  
 |  __ \   / ____|__   __|  ____|  / __ \| |/ /__ \ 
 | |__) | | |       | |  | |__    | |  | | ' /   ) |
 |  _  /  | |       | |  |  __|   | |  | |  <   / / 
 | | \ \  | |____   | |  | |      | |__| | . \ |_|  
 |_|  \_\  \_____|  |_|  |_|       \____/|_|\_\(_)