pereztr5 / cyboard

Scoring engine for cyber defense competitions
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

Pass team name & IP to service checking scripts as arguments #31

Closed tbutts closed 3 months ago

tbutts commented 6 years ago

Service monitor scripts should be able to use the team's name and IP together. This would be for something like a SSH banner grab, where the content must have the team's name. At the moment, only the team's IP is available to the service scripts.

Right now, arguments to scripts are configured, where the raw string "IP" is replaced by the IP addr of the team being evaluated. Example:

[[checks]]
# ...
args = "-I IP -t 5"

While this has worked, it feels flimsy. A golang text/template format string could do the job of substituting {{ .Name }} and {{ .IP }}. That is just one solution, though.