@kinosec/cli 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ kinosec pentest watch <profile-id>
|
|
|
36
36
|
kinosec pentest schedule create --asset <id> --pattern weekly --day-of-week 1 --time 09:00
|
|
37
37
|
|
|
38
38
|
# View findings
|
|
39
|
-
kinosec finding list
|
|
39
|
+
kinosec finding list <profile-id>
|
|
40
40
|
|
|
41
41
|
# Export a report
|
|
42
42
|
kinosec report export <report-id> --format markdown > report.md
|
|
@@ -80,7 +80,7 @@ $ kinosec pentest list
|
|
|
80
80
|
ID Target Mode Status Created
|
|
81
81
|
a1b2c3d4-0000-0000-0000-000000000001 example.com full Completed 5/1/2026
|
|
82
82
|
|
|
83
|
-
$ kinosec finding list
|
|
83
|
+
$ kinosec finding list a1b2c3d4-0000-0000-0000-000000000001
|
|
84
84
|
ID Name Severity Status
|
|
85
85
|
b2c3d4e5-0000-0000-0000-000000000001 SQL Injection Critical open
|
|
86
86
|
```
|
package/dist/cli.js
CHANGED
|
@@ -10357,7 +10357,7 @@ Pentest failed: ${scanDetail.failure_reason || "unknown reason"}`));
|
|
|
10357
10357
|
}
|
|
10358
10358
|
console.log(import_picocolors5.default.green(`
|
|
10359
10359
|
Pentest completed: ${scanDetail.domain_or_ip}`));
|
|
10360
|
-
console.log(` View findings: kinosec finding list
|
|
10360
|
+
console.log(` View findings: kinosec finding list ${id}`);
|
|
10361
10361
|
break;
|
|
10362
10362
|
}
|
|
10363
10363
|
if (Date.now() - startTime > timeoutMs) {
|
|
@@ -10547,10 +10547,10 @@ function severityColor(level) {
|
|
|
10547
10547
|
var VALID_STATUSES = ["open", "fixed", "false_positive", "accepted_risk", "resolved"];
|
|
10548
10548
|
function registerFindingCommand(program3) {
|
|
10549
10549
|
const finding = program3.command("finding").description("Manage findings");
|
|
10550
|
-
finding.command("list").description("List findings").
|
|
10550
|
+
finding.command("list").description("List findings").argument("[profile-id]", "Pentest profile ID").option("--limit <n>", "Max results per page", "20").option("--cursor <cursor>", "Pagination cursor").addHelpText("after", `
|
|
10551
10551
|
Examples:
|
|
10552
|
-
$ kinosec finding list
|
|
10553
|
-
$ kinosec finding list --limit 50 --json`).action(async (options) => {
|
|
10552
|
+
$ kinosec finding list abc123
|
|
10553
|
+
$ kinosec finding list --limit 50 --json`).action(async (profileId, options) => {
|
|
10554
10554
|
try {
|
|
10555
10555
|
const opts = program3.opts();
|
|
10556
10556
|
const { token, apiUrl } = resolveToken(opts);
|
|
@@ -10558,7 +10558,7 @@ Examples:
|
|
|
10558
10558
|
const result = await client.findings.list({
|
|
10559
10559
|
limit: parseInt(options.limit, 10),
|
|
10560
10560
|
cursor: options.cursor,
|
|
10561
|
-
scan:
|
|
10561
|
+
scan: profileId
|
|
10562
10562
|
});
|
|
10563
10563
|
if (opts.json || opts.output === "json") {
|
|
10564
10564
|
printJson(result);
|
|
@@ -10907,7 +10907,7 @@ Examples:
|
|
|
10907
10907
|
|
|
10908
10908
|
// src/cli.ts
|
|
10909
10909
|
var program2 = new Command();
|
|
10910
|
-
program2.name("kinosec").description("KinoSec CLI \u2014 run pentests from your terminal").version("0.3.
|
|
10910
|
+
program2.name("kinosec").description("KinoSec CLI \u2014 run pentests from your terminal").version("0.3.2", "-v, --version").option("--token <pat>", "API token (overrides KINOSEC_TOKEN and config)").option("--api-url <url>", "API base URL (overrides config)").option("--output <format>", "Output format: text or json", "text").option("--json", "Shorthand for --output json").option("--no-color", "Disable colors");
|
|
10911
10911
|
registerAuthCommand(program2);
|
|
10912
10912
|
registerConfigCommand(program2);
|
|
10913
10913
|
registerMeCommand(program2);
|
|
@@ -10916,7 +10916,7 @@ registerAssetCommand(program2);
|
|
|
10916
10916
|
registerFindingCommand(program2);
|
|
10917
10917
|
registerReportCommand(program2);
|
|
10918
10918
|
registerTokenCommand(program2);
|
|
10919
|
-
program2.parseAsync(process.argv).then(() => checkForUpdate("0.3.
|
|
10919
|
+
program2.parseAsync(process.argv).then(() => checkForUpdate("0.3.2")).catch(handleError);
|
|
10920
10920
|
/*! Bundled license information:
|
|
10921
10921
|
|
|
10922
10922
|
ky/distribution/index.js:
|