(val, default, lo, hi)
| 53 | try: |
| 54 | from flask import request, jsonify |
| 55 | except Exception: # pragma: no cover - flask always present in the app |
| 56 | request = None |
| 57 | jsonify = None |
| 58 | |
| 59 | # -------------------------------------------------------------------------- |
| 60 | # Input validation — these endpoints run system commands, so user-supplied |
| 61 | # targets/interfaces are strictly validated. Commands are always invoked with |
| 62 | # an argument list (never shell=True), and a leading '-' is rejected so a |
| 63 | # target can't be smuggled in as a tool flag. |
no outgoing calls
no test coverage detected