@pensar/apex 1.1.0 → 1.2.0-canary.45d5a431
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/build/{agent-wmynfx37.js → agent-6tr656h6.js} +8 -8
- package/build/agent-8a7t15zp.js +18 -0
- package/build/{auth-p2n15nfp.js → auth-jzmpqksm.js} +4 -4
- package/build/{authentication-ngxxzcvc.js → authentication-79cr1733.js} +7 -7
- package/build/blackboxAgent-r71vagzf.js +18 -0
- package/build/{blackboxPentest-7jvcbz3f.js → blackboxPentest-7xz1zg1f.js} +13 -13
- package/build/{cli-5xfjvm8j.js → cli-4drstr4p.js} +1 -1
- package/build/{cli-d5mcmzp1.js → cli-a0krppgv.js} +1 -1
- package/build/{cli-06q6sz4x.js → cli-b88bgfv5.js} +2 -2
- package/build/{cli-ch1yfrj1.js → cli-byq7tftq.js} +2 -2
- package/build/{cli-yvnb3k0x.js → cli-chtdyzgf.js} +1 -1
- package/build/{cli-ahmpjgg6.js → cli-cmr0vsq2.js} +1 -1
- package/build/{cli-gs7zy230.js → cli-d5zmetvp.js} +2 -2
- package/build/{cli-6negm843.js → cli-en95jsmj.js} +1 -1
- package/build/{cli-st6vsbzv.js → cli-fnbfcd05.js} +1 -1
- package/build/{cli-tyrzasca.js → cli-fqbtn2jm.js} +63 -24
- package/build/{cli-nwcvgx5m.js → cli-jmfjf0xc.js} +7 -7
- package/build/{cli-t1nkahx2.js → cli-ph5ntnp3.js} +1 -1
- package/build/{cli-1tv4x6xh.js → cli-pwm6h6qr.js} +2 -2
- package/build/{cli-mazg4ajq.js → cli-tztmmk79.js} +2 -2
- package/build/{cli-1xdc0keq.js → cli-v59chwpq.js} +1 -1
- package/build/cli.js +34 -22
- package/build/{fixes-p4e3bjcg.js → fixes-jybzkf67.js} +4 -4
- package/build/{index-m6gw4113.js → index-8q3h58dx.js} +2 -2
- package/build/{index-ywrq8mhc.js → index-xnerya9j.js} +2197 -1531
- package/build/{index-gpvx8y17.js → index-yehvwy6w.js} +4 -4
- package/build/{index-esgrht7q.js → index-yvrq5hvh.js} +6 -6
- package/build/{issues-8had86x1.js → issues-1x3f1ayz.js} +4 -4
- package/build/{logs-3fpd8xq8.js → logs-dhvwj9cy.js} +4 -4
- package/build/pentest-qqgw0g47.js +28 -0
- package/build/{pentests-tqv6zrqy.js → pentests-c8fgdcnv.js} +4 -4
- package/build/{projects-eh2g7061.js → projects-nqv0yd0p.js} +4 -4
- package/build/{targetedPentest-60td56me.js → targetedPentest-0b2gvj21.js} +8 -8
- package/build/{threatModel-v46xygtn.js → threatModel-t8qvtm5z.js} +8 -8
- package/build/{uninstall-vz6jzt86.js → uninstall-g133a6p8.js} +1 -1
- package/package.json +1 -1
- package/build/agent-0jmzw6zx.js +0 -18
- package/build/blackboxAgent-v698p7e4.js +0 -18
- package/build/pentest-4ty38pt8.js +0 -28
package/build/cli.js
CHANGED
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
import"./cli-3y0dgy56.js";
|
|
7
7
|
import {
|
|
8
8
|
init_toolset
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-pwm6h6qr.js";
|
|
10
10
|
import {
|
|
11
11
|
init_models
|
|
12
12
|
} from "./cli-03z6pswp.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
13
|
+
import"./cli-ph5ntnp3.js";
|
|
14
|
+
import"./cli-4drstr4p.js";
|
|
15
|
+
import"./cli-chtdyzgf.js";
|
|
16
16
|
import {
|
|
17
17
|
package_default
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-fnbfcd05.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
20
|
import {
|
|
21
21
|
__require,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
// package.json
|
|
25
25
|
var package_default2 = {
|
|
26
26
|
name: "@pensar/apex",
|
|
27
|
-
version: "1.
|
|
27
|
+
version: "1.2.0-canary.45d5a431",
|
|
28
28
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
29
29
|
module: "src/tui/index.tsx",
|
|
30
30
|
main: "build/cli.js",
|
|
@@ -441,6 +441,15 @@ function resolveThreatModelPrompt(value) {
|
|
|
441
441
|
var args = process.argv.slice(2);
|
|
442
442
|
var command = args[0];
|
|
443
443
|
var version = package_default2.version;
|
|
444
|
+
var OBFUSCATE_FLAGS = new Set(["--obfuscate", "--redact", "-O"]);
|
|
445
|
+
var obfuscateRequested = args.some((a) => OBFUSCATE_FLAGS.has(a));
|
|
446
|
+
if (obfuscateRequested) {
|
|
447
|
+
process.env.PENSAR_OBFUSCATE = "1";
|
|
448
|
+
for (let i = args.length - 1;i >= 0; i--) {
|
|
449
|
+
if (OBFUSCATE_FLAGS.has(args[i]))
|
|
450
|
+
args.splice(i, 1);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
444
453
|
function getArg(flag, argv = args) {
|
|
445
454
|
const idx = argv.indexOf(flag);
|
|
446
455
|
return idx !== -1 ? argv[idx + 1] : undefined;
|
|
@@ -524,14 +533,17 @@ threat-model options:
|
|
|
524
533
|
Global options:
|
|
525
534
|
-h, --help Show this help message
|
|
526
535
|
-v, --version Show version number
|
|
536
|
+
--obfuscate Run the TUI in obfuscation mode \u2014 redacts hostnames,
|
|
537
|
+
IPs, UUIDs, emails, paths, tokens, and apparent
|
|
538
|
+
company names so screenshots are safe to share.
|
|
527
539
|
`);
|
|
528
540
|
}
|
|
529
541
|
async function runPentest() {
|
|
530
542
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
531
543
|
config2();
|
|
532
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
533
|
-
const { sessions } = await import("./index-
|
|
534
|
-
const { config: appConfig } = await import("./index-
|
|
544
|
+
const { runPentestAgent } = await import("./blackboxPentest-7xz1zg1f.js");
|
|
545
|
+
const { sessions } = await import("./index-yvrq5hvh.js");
|
|
546
|
+
const { config: appConfig } = await import("./index-8q3h58dx.js");
|
|
535
547
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
536
548
|
const target = getArgRequired("--target");
|
|
537
549
|
const cwd = getArg("--cwd");
|
|
@@ -597,9 +609,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
597
609
|
async function runTargetedPentest() {
|
|
598
610
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
599
611
|
config2();
|
|
600
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
601
|
-
const { sessions } = await import("./index-
|
|
602
|
-
const { config: appConfig } = await import("./index-
|
|
612
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-0b2gvj21.js");
|
|
613
|
+
const { sessions } = await import("./index-yvrq5hvh.js");
|
|
614
|
+
const { config: appConfig } = await import("./index-8q3h58dx.js");
|
|
603
615
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
604
616
|
const target = getArgRequired("--target");
|
|
605
617
|
const objectives = getAllArgs("--objective");
|
|
@@ -649,8 +661,8 @@ POCs: ${pocsPath}`);
|
|
|
649
661
|
async function runThreatModel() {
|
|
650
662
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
651
663
|
config2();
|
|
652
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
653
|
-
const { config: appConfig } = await import("./index-
|
|
664
|
+
const { runThreatModelWorkflow } = await import("./threatModel-t8qvtm5z.js");
|
|
665
|
+
const { config: appConfig } = await import("./index-8q3h58dx.js");
|
|
654
666
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
655
667
|
const path = await import("path");
|
|
656
668
|
const pensarConfig = await appConfig.get();
|
|
@@ -706,25 +718,25 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
706
718
|
await runTargetedPentest();
|
|
707
719
|
} else if (command === "login" || command === "auth") {
|
|
708
720
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
709
|
-
await import("./auth-
|
|
721
|
+
await import("./auth-jzmpqksm.js");
|
|
710
722
|
} else if (command === "uninstall") {
|
|
711
723
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
712
|
-
await import("./uninstall-
|
|
724
|
+
await import("./uninstall-g133a6p8.js");
|
|
713
725
|
} else if (command === "projects") {
|
|
714
726
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
715
|
-
await import("./projects-
|
|
727
|
+
await import("./projects-nqv0yd0p.js");
|
|
716
728
|
} else if (command === "pentests") {
|
|
717
729
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
718
|
-
await import("./pentests-
|
|
730
|
+
await import("./pentests-c8fgdcnv.js");
|
|
719
731
|
} else if (command === "issues") {
|
|
720
732
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
721
|
-
await import("./issues-
|
|
733
|
+
await import("./issues-1x3f1ayz.js");
|
|
722
734
|
} else if (command === "fixes") {
|
|
723
735
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
724
|
-
await import("./fixes-
|
|
736
|
+
await import("./fixes-jybzkf67.js");
|
|
725
737
|
} else if (command === "logs") {
|
|
726
738
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
727
|
-
await import("./logs-
|
|
739
|
+
await import("./logs-dhvwj9cy.js");
|
|
728
740
|
} else if (command === "threat-model") {
|
|
729
741
|
await runThreatModel();
|
|
730
742
|
} else if (command === "doctor") {
|
|
@@ -736,7 +748,7 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
736
748
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
737
749
|
process.exit(1);
|
|
738
750
|
}
|
|
739
|
-
await import("./index-
|
|
751
|
+
await import("./index-xnerya9j.js");
|
|
740
752
|
} else {
|
|
741
753
|
console.error(`Error: Unknown command '${command}'`);
|
|
742
754
|
console.error();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getFix,
|
|
4
4
|
listFixes
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
5
|
+
} from "./cli-a0krppgv.js";
|
|
6
|
+
import"./cli-4drstr4p.js";
|
|
7
|
+
import"./cli-chtdyzgf.js";
|
|
8
|
+
import"./cli-fnbfcd05.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/fixes.ts
|