|
| 1 | +# scbctl - CLI for secureCodeBox |
| 2 | + |
| 3 | +A handy CLI for interaction with [secureCodeBox](https://github.com/secureCodeBox/secureCodeBox) CustomResources like Scans & ScheduledScans which are tedious to perform using usual `kubectl` & `helm` tooling. |
| 4 | + |
| 5 | +## Installation |
| 6 | + |
| 7 | +```bash |
| 8 | +git clone https://github.com/secureCodeBox/secureCodeBox.git |
| 9 | +make scbctl |
| 10 | + |
| 11 | +# move `scbctl` binary into a directory in your path |
| 12 | +cd scbctl |
| 13 | +sudo mv scbctl /usr/local/bin/scbctl |
| 14 | +``` |
| 15 | + |
| 16 | +## Commands |
| 17 | + |
| 18 | +### scan |
| 19 | + |
| 20 | +Create a new Scan custom resource in the current namespace. |
| 21 | + |
| 22 | +#### Usage |
| 23 | + |
| 24 | +```bash |
| 25 | +scbctl scan [scanType] -- [parameters...] |
| 26 | +``` |
| 27 | + |
| 28 | +#### Arguments |
| 29 | + |
| 30 | +- `scanType`: The type of scan to create. |
| 31 | +- `parameters...`: Additional parameters to pass to the scan. |
| 32 | + |
| 33 | +#### Examples |
| 34 | + |
| 35 | +```bash |
| 36 | +# Create a new scan |
| 37 | +scbctl scan nmap -- scanme.nmap.org |
| 38 | + |
| 39 | +# Create a scan with a custom name |
| 40 | +scbctl scan nmap --name scanme-nmap-org -- scanme.nmap.org |
| 41 | + |
| 42 | +# Create with multiple parameters |
| 43 | +scbctl scan nuclei -- -target example.com |
| 44 | + |
| 45 | +# Create in a different namespace |
| 46 | +scbctl scan --namespace foobar nmap -- -p 80 scanme.nmap.org |
| 47 | +``` |
| 48 | + |
| 49 | +### trigger |
| 50 | + |
| 51 | +Trigger a new execution (Scan) of a ScheduledScan, ahead of its usual execution schedule. |
| 52 | + |
| 53 | +#### Usage |
| 54 | + |
| 55 | +```bash |
| 56 | +scbctl trigger [scheduledScanName] [flags] |
| 57 | +``` |
| 58 | + |
| 59 | +#### Arguments |
| 60 | + |
| 61 | +- `scheduledScanName`: The name of the ScheduledScan to trigger. |
| 62 | + |
| 63 | +#### Examples |
| 64 | + |
| 65 | +```bash |
| 66 | +# Trigger a new scan for a ScheduledScan |
| 67 | +scbctl trigger nmap-localhost |
| 68 | + |
| 69 | +# Trigger in a different namespace |
| 70 | +scbctl trigger nmap-localhost --namespace foobar |
| 71 | +``` |
| 72 | + |
| 73 | +## Completion |
| 74 | + |
| 75 | +`scbctl` offers shell completion. See `scbctl completion --help` for instructions on how to set it up in your shell environment. |
0 commit comments