@pensar/apex 1.0.0 → 1.1.0
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/assets/wordlists/LICENSE +21 -0
- package/assets/wordlists/README.md +36 -0
- package/assets/wordlists/common.txt +4751 -0
- package/assets/wordlists/large.txt +29999 -0
- package/assets/wordlists/tiny.txt +227 -0
- package/build/agent-0jmzw6zx.js +18 -0
- package/build/{agent-95ysppvr.js → agent-wmynfx37.js} +10 -9
- package/build/{auth-h84w23gx.js → auth-p2n15nfp.js} +4 -4
- package/build/{authentication-3m2qm7ym.js → authentication-ngxxzcvc.js} +11 -11
- package/build/blackboxAgent-v698p7e4.js +18 -0
- package/build/{blackboxPentest-kn3y84jf.js → blackboxPentest-7jvcbz3f.js} +15 -15
- package/build/{cli-r8cerdwk.js → cli-03z6pswp.js} +1 -1
- package/build/{cli-abkgxjcc.js → cli-06q6sz4x.js} +2 -2
- package/build/{cli-dfth2beg.js → cli-1tv4x6xh.js} +8 -8
- package/build/{cli-ey40xb9a.js → cli-1xdc0keq.js} +1 -1
- package/build/{cli-qcsv2e9h.js → cli-5xfjvm8j.js} +1 -1
- package/build/{cli-wqeja2k6.js → cli-6negm843.js} +1 -1
- package/build/{cli-x5t1x7ts.js → cli-ahmpjgg6.js} +1 -1
- package/build/{cli-j4qm285k.js → cli-ch1yfrj1.js} +2 -2
- package/build/{cli-dsybj1jp.js → cli-d5mcmzp1.js} +1 -1
- package/build/{cli-etrmgpa5.js → cli-gs7zy230.js} +5 -5
- package/build/{cli-awjwsbrz.js → cli-mazg4ajq.js} +2 -2
- package/build/{cli-mxj8tz9b.js → cli-nwcvgx5m.js} +51 -14
- package/build/{cli-r4jzb7aj.js → cli-st6vsbzv.js} +2 -1
- package/build/{cli-qvq41y3z.js → cli-t1nkahx2.js} +1 -1
- package/build/cli-tp1tqn3k.js +184 -0
- package/build/{cli-yz3dzpxd.js → cli-tyrzasca.js} +351 -104
- package/build/{cli-sgzbqavm.js → cli-yvnb3k0x.js} +1 -1
- package/build/cli.js +28 -27
- package/build/{doctor-b7612pzw.js → doctor-8tva8j99.js} +1 -1
- package/build/{fixes-5f9xv4yx.js → fixes-p4e3bjcg.js} +4 -4
- package/build/{index-b7e18f8m.js → index-esgrht7q.js} +7 -7
- package/build/{index-d86fgcjm.js → index-gpvx8y17.js} +4 -4
- package/build/{index-h5r11f3q.js → index-m6gw4113.js} +2 -2
- package/build/{index-0qfckx3a.js → index-ywrq8mhc.js} +1555 -1449
- package/build/{issues-dy4rrtr2.js → issues-8had86x1.js} +4 -4
- package/build/{logs-d3sjx7vk.js → logs-3fpd8xq8.js} +4 -4
- package/build/pentest-4ty38pt8.js +28 -0
- package/build/{pentests-vwekf0zm.js → pentests-tqv6zrqy.js} +4 -4
- package/build/{projects-se9jgfb0.js → projects-eh2g7061.js} +4 -4
- package/build/{targetedPentest-mhkts702.js → targetedPentest-60td56me.js} +10 -9
- package/build/{threatModel-gdvgv7pc.js → threatModel-v46xygtn.js} +10 -9
- package/build/{uninstall-11a98j87.js → uninstall-vz6jzt86.js} +1 -1
- package/build/{utils-zvr7bcyw.js → utils-8yqe12jr.js} +1 -1
- package/package.json +2 -1
- package/build/agent-e3r90w2x.js +0 -17
- package/build/blackboxAgent-4t68wah3.js +0 -18
- package/build/cli-6gtnyaqf.js +0 -109
- package/build/pentest-6ctf263k.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-1tv4x6xh.js";
|
|
10
10
|
import {
|
|
11
11
|
init_models
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
12
|
+
} from "./cli-03z6pswp.js";
|
|
13
|
+
import"./cli-t1nkahx2.js";
|
|
14
|
+
import"./cli-5xfjvm8j.js";
|
|
15
|
+
import"./cli-yvnb3k0x.js";
|
|
16
16
|
import {
|
|
17
17
|
package_default
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-st6vsbzv.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.1.0",
|
|
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",
|
|
@@ -39,6 +39,7 @@ var package_default2 = {
|
|
|
39
39
|
files: [
|
|
40
40
|
"build",
|
|
41
41
|
"bin",
|
|
42
|
+
"assets",
|
|
42
43
|
"pensar.svg",
|
|
43
44
|
"LICENSE"
|
|
44
45
|
],
|
|
@@ -528,10 +529,10 @@ Global options:
|
|
|
528
529
|
async function runPentest() {
|
|
529
530
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
530
531
|
config2();
|
|
531
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
532
|
-
const { sessions } = await import("./index-
|
|
533
|
-
const { config: appConfig } = await import("./index-
|
|
534
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
532
|
+
const { runPentestAgent } = await import("./blackboxPentest-7jvcbz3f.js");
|
|
533
|
+
const { sessions } = await import("./index-esgrht7q.js");
|
|
534
|
+
const { config: appConfig } = await import("./index-m6gw4113.js");
|
|
535
|
+
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
535
536
|
const target = getArgRequired("--target");
|
|
536
537
|
const cwd = getArg("--cwd");
|
|
537
538
|
const mode = getArg("--mode");
|
|
@@ -596,10 +597,10 @@ Report: ${reportPath}` : ""}`);
|
|
|
596
597
|
async function runTargetedPentest() {
|
|
597
598
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
598
599
|
config2();
|
|
599
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
600
|
-
const { sessions } = await import("./index-
|
|
601
|
-
const { config: appConfig } = await import("./index-
|
|
602
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
600
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-60td56me.js");
|
|
601
|
+
const { sessions } = await import("./index-esgrht7q.js");
|
|
602
|
+
const { config: appConfig } = await import("./index-m6gw4113.js");
|
|
603
|
+
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
603
604
|
const target = getArgRequired("--target");
|
|
604
605
|
const objectives = getAllArgs("--objective");
|
|
605
606
|
const pensarConfig = await appConfig.get();
|
|
@@ -648,9 +649,9 @@ POCs: ${pocsPath}`);
|
|
|
648
649
|
async function runThreatModel() {
|
|
649
650
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
650
651
|
config2();
|
|
651
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
652
|
-
const { config: appConfig } = await import("./index-
|
|
653
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
652
|
+
const { runThreatModelWorkflow } = await import("./threatModel-v46xygtn.js");
|
|
653
|
+
const { config: appConfig } = await import("./index-m6gw4113.js");
|
|
654
|
+
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
654
655
|
const path = await import("path");
|
|
655
656
|
const pensarConfig = await appConfig.get();
|
|
656
657
|
const dynamicDefault = getDefaultModelForConfig(pensarConfig)?.id ?? "claude-sonnet-4-5";
|
|
@@ -705,29 +706,29 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
705
706
|
await runTargetedPentest();
|
|
706
707
|
} else if (command === "login" || command === "auth") {
|
|
707
708
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
708
|
-
await import("./auth-
|
|
709
|
+
await import("./auth-p2n15nfp.js");
|
|
709
710
|
} else if (command === "uninstall") {
|
|
710
711
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
711
|
-
await import("./uninstall-
|
|
712
|
+
await import("./uninstall-vz6jzt86.js");
|
|
712
713
|
} else if (command === "projects") {
|
|
713
714
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
714
|
-
await import("./projects-
|
|
715
|
+
await import("./projects-eh2g7061.js");
|
|
715
716
|
} else if (command === "pentests") {
|
|
716
717
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
717
|
-
await import("./pentests-
|
|
718
|
+
await import("./pentests-tqv6zrqy.js");
|
|
718
719
|
} else if (command === "issues") {
|
|
719
720
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
720
|
-
await import("./issues-
|
|
721
|
+
await import("./issues-8had86x1.js");
|
|
721
722
|
} else if (command === "fixes") {
|
|
722
723
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
723
|
-
await import("./fixes-
|
|
724
|
+
await import("./fixes-p4e3bjcg.js");
|
|
724
725
|
} else if (command === "logs") {
|
|
725
726
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
726
|
-
await import("./logs-
|
|
727
|
+
await import("./logs-3fpd8xq8.js");
|
|
727
728
|
} else if (command === "threat-model") {
|
|
728
729
|
await runThreatModel();
|
|
729
730
|
} else if (command === "doctor") {
|
|
730
|
-
const { runDoctor } = await import("./doctor-
|
|
731
|
+
const { runDoctor } = await import("./doctor-8tva8j99.js");
|
|
731
732
|
await runDoctor();
|
|
732
733
|
} else if (args.length === 0) {
|
|
733
734
|
if (process.env.PENSAR_NO_TUI === "1") {
|
|
@@ -735,7 +736,7 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
735
736
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
736
737
|
process.exit(1);
|
|
737
738
|
}
|
|
738
|
-
await import("./index-
|
|
739
|
+
await import("./index-ywrq8mhc.js");
|
|
739
740
|
} else {
|
|
740
741
|
console.error(`Error: Unknown command '${command}'`);
|
|
741
742
|
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-d5mcmzp1.js";
|
|
6
|
+
import"./cli-5xfjvm8j.js";
|
|
7
|
+
import"./cli-yvnb3k0x.js";
|
|
8
|
+
import"./cli-st6vsbzv.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/fixes.ts
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
update,
|
|
14
14
|
write,
|
|
15
15
|
writeRaw
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-6negm843.js";
|
|
17
17
|
import {
|
|
18
18
|
ToolsetStateSchema,
|
|
19
19
|
exports_toolset,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
init_zod,
|
|
22
22
|
toggleTool,
|
|
23
23
|
zod_default
|
|
24
|
-
} from "./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
24
|
+
} from "./cli-1tv4x6xh.js";
|
|
25
|
+
import"./cli-03z6pswp.js";
|
|
26
|
+
import"./cli-t1nkahx2.js";
|
|
27
|
+
import"./cli-5xfjvm8j.js";
|
|
28
|
+
import"./cli-yvnb3k0x.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-st6vsbzv.js";
|
|
32
32
|
import"./cli-gpnb45ck.js";
|
|
33
33
|
import {
|
|
34
34
|
__require,
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
signGatewayRequest,
|
|
10
10
|
startDeviceFlow,
|
|
11
11
|
validateGateway
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-t1nkahx2.js";
|
|
13
13
|
import {
|
|
14
14
|
ensureValidToken,
|
|
15
15
|
fetchWorkOSClientId,
|
|
16
16
|
isTokenExpired,
|
|
17
17
|
refreshAccessToken
|
|
18
|
-
} from "./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
} from "./cli-5xfjvm8j.js";
|
|
19
|
+
import"./cli-yvnb3k0x.js";
|
|
20
|
+
import"./cli-st6vsbzv.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
export {
|
|
23
23
|
validateGateway,
|