@pensar/apex 1.1.0 → 1.2.0-canary.c3bf2e6a
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-ahz0yyg1.js +18 -0
- package/build/{agent-wmynfx37.js → agent-m67k9wb1.js} +8 -8
- package/build/{auth-p2n15nfp.js → auth-r2k8q8m9.js} +4 -4
- package/build/{authentication-ngxxzcvc.js → authentication-g711cewj.js} +7 -7
- package/build/blackboxAgent-qcsh44bt.js +18 -0
- package/build/{blackboxPentest-7jvcbz3f.js → blackboxPentest-893cww4k.js} +13 -13
- package/build/{cli-yvnb3k0x.js → cli-1c2fnr1k.js} +1 -1
- package/build/{cli-5xfjvm8j.js → cli-2tbkec8f.js} +1 -1
- package/build/{cli-nwcvgx5m.js → cli-2vyphgra.js} +7 -7
- package/build/{cli-mazg4ajq.js → cli-5sfagwfe.js} +2 -2
- package/build/{cli-gs7zy230.js → cli-f6559qnx.js} +2 -2
- package/build/{cli-st6vsbzv.js → cli-hpdt7v03.js} +1 -1
- package/build/{cli-6negm843.js → cli-k529jzmy.js} +1 -1
- package/build/{cli-1xdc0keq.js → cli-kt8sg970.js} +1 -1
- package/build/{cli-ch1yfrj1.js → cli-m3pzphmz.js} +2 -2
- package/build/{cli-tyrzasca.js → cli-p4aybgn4.js} +12 -12
- package/build/{cli-d5mcmzp1.js → cli-pm109de9.js} +1 -1
- package/build/{cli-ahmpjgg6.js → cli-q0f8tk4y.js} +1 -1
- package/build/{cli-06q6sz4x.js → cli-q7bj9g92.js} +2 -2
- package/build/{cli-1tv4x6xh.js → cli-qqje2z05.js} +2 -2
- package/build/{cli-t1nkahx2.js → cli-tj2n07me.js} +1 -1
- package/build/cli.js +34 -22
- package/build/{fixes-p4e3bjcg.js → fixes-v68zb6d6.js} +4 -4
- package/build/{index-esgrht7q.js → index-853ymgnk.js} +6 -6
- package/build/{index-ywrq8mhc.js → index-ecfmp03p.js} +2197 -1531
- package/build/{index-m6gw4113.js → index-gw3wjpds.js} +2 -2
- package/build/{index-gpvx8y17.js → index-znbcqm45.js} +4 -4
- package/build/{issues-8had86x1.js → issues-62nm39dh.js} +4 -4
- package/build/{logs-3fpd8xq8.js → logs-dvq4jzwm.js} +4 -4
- package/build/pentest-8qv8samj.js +28 -0
- package/build/{pentests-tqv6zrqy.js → pentests-x82fbz5j.js} +4 -4
- package/build/{projects-eh2g7061.js → projects-dxpqgqxa.js} +4 -4
- package/build/{targetedPentest-60td56me.js → targetedPentest-wam40gbz.js} +8 -8
- package/build/{threatModel-v46xygtn.js → threatModel-e3z7fysb.js} +8 -8
- package/build/{uninstall-vz6jzt86.js → uninstall-db5966jn.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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-5sfagwfe.js";
|
|
4
|
+
import"./cli-p4aybgn4.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-k529jzmy.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-qqje2z05.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-tj2n07me.js";
|
|
11
|
+
import"./cli-2tbkec8f.js";
|
|
12
|
+
import"./cli-1c2fnr1k.js";
|
|
13
|
+
import"./cli-hpdt7v03.js";
|
|
14
|
+
import"./cli-gpnb45ck.js";
|
|
15
|
+
import"./cli-8rxa073f.js";
|
|
16
|
+
export {
|
|
17
|
+
CodeAgent
|
|
18
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhiteboxAttackSurfaceResultSchema
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-kt8sg970.js";
|
|
4
4
|
import {
|
|
5
5
|
OffensiveSecurityAgent
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-p4aybgn4.js";
|
|
7
7
|
import"./cli-tp1tqn3k.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-k529jzmy.js";
|
|
9
9
|
import"./cli-3y0dgy56.js";
|
|
10
10
|
import {
|
|
11
11
|
hasToolCall,
|
|
12
12
|
tool
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-qqje2z05.js";
|
|
14
14
|
import"./cli-03z6pswp.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
15
|
+
import"./cli-tj2n07me.js";
|
|
16
|
+
import"./cli-2tbkec8f.js";
|
|
17
|
+
import"./cli-1c2fnr1k.js";
|
|
18
|
+
import"./cli-hpdt7v03.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
20
|
import"./cli-8rxa073f.js";
|
|
21
21
|
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
pollWorkOSToken,
|
|
9
9
|
selectWorkspace,
|
|
10
10
|
startDeviceFlow
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-tj2n07me.js";
|
|
12
12
|
import {
|
|
13
13
|
config,
|
|
14
14
|
getPensarApiUrl,
|
|
15
15
|
getPensarConsoleUrl
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
16
|
+
} from "./cli-2tbkec8f.js";
|
|
17
|
+
import"./cli-1c2fnr1k.js";
|
|
18
|
+
import"./cli-hpdt7v03.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./cli-8rxa073f.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-p4aybgn4.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-k529jzmy.js";
|
|
8
8
|
import"./cli-3y0dgy56.js";
|
|
9
9
|
import {
|
|
10
10
|
hasToolCall
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-qqje2z05.js";
|
|
12
12
|
import"./cli-03z6pswp.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
13
|
+
import"./cli-tj2n07me.js";
|
|
14
|
+
import"./cli-2tbkec8f.js";
|
|
15
|
+
import"./cli-1c2fnr1k.js";
|
|
16
|
+
import"./cli-hpdt7v03.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
18
|
import"./cli-8rxa073f.js";
|
|
19
19
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-f6559qnx.js";
|
|
4
|
+
import"./cli-p4aybgn4.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-k529jzmy.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-qqje2z05.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-tj2n07me.js";
|
|
11
|
+
import"./cli-2tbkec8f.js";
|
|
12
|
+
import"./cli-1c2fnr1k.js";
|
|
13
|
+
import"./cli-hpdt7v03.js";
|
|
14
|
+
import"./cli-gpnb45ck.js";
|
|
15
|
+
import"./cli-8rxa073f.js";
|
|
16
|
+
export {
|
|
17
|
+
BlackboxAttackSurfaceAgent
|
|
18
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
3
|
+
} from "./cli-2vyphgra.js";
|
|
4
|
+
import"./cli-q7bj9g92.js";
|
|
5
|
+
import"./cli-m3pzphmz.js";
|
|
6
|
+
import"./cli-f6559qnx.js";
|
|
7
7
|
import"./cli-fw5r7pfj.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-5sfagwfe.js";
|
|
9
|
+
import"./cli-kt8sg970.js";
|
|
10
|
+
import"./cli-p4aybgn4.js";
|
|
11
11
|
import"./cli-tp1tqn3k.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-k529jzmy.js";
|
|
13
13
|
import"./cli-3y0dgy56.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-qqje2z05.js";
|
|
15
15
|
import"./cli-03z6pswp.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
16
|
+
import"./cli-tj2n07me.js";
|
|
17
|
+
import"./cli-2tbkec8f.js";
|
|
18
|
+
import"./cli-1c2fnr1k.js";
|
|
19
|
+
import"./cli-hpdt7v03.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
updateManifestEntryStatus,
|
|
15
15
|
writeAgentManifest,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-q7bj9g92.js";
|
|
18
18
|
import {
|
|
19
19
|
TargetedPentestAgent,
|
|
20
20
|
buildPentestSystemPrompt
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-m3pzphmz.js";
|
|
22
22
|
import {
|
|
23
23
|
BlackboxAttackSurfaceAgent
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-f6559qnx.js";
|
|
25
25
|
import {
|
|
26
26
|
createThreatModelPrompt
|
|
27
27
|
} from "./cli-fw5r7pfj.js";
|
|
28
28
|
import {
|
|
29
29
|
CodeAgent
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-5sfagwfe.js";
|
|
31
31
|
import {
|
|
32
32
|
EndpointSchema
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-kt8sg970.js";
|
|
34
34
|
import {
|
|
35
35
|
FindingsRegistry,
|
|
36
36
|
OffensiveSecurityAgent,
|
|
37
37
|
PLAN_MODE_TOOL_NAMES
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-p4aybgn4.js";
|
|
39
39
|
import {
|
|
40
40
|
exports_external,
|
|
41
41
|
hasToolCall,
|
|
42
42
|
init_zod
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-qqje2z05.js";
|
|
44
44
|
|
|
45
45
|
// src/core/workflows/pentest.ts
|
|
46
46
|
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-p4aybgn4.js";
|
|
4
4
|
import {
|
|
5
5
|
stepCountIs
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-qqje2z05.js";
|
|
7
7
|
|
|
8
8
|
// src/core/agents/specialized/codeAgent/prompts.ts
|
|
9
9
|
var CODE_AGENT_SYSTEM_PROMPT = `You are an expert coding agent with direct filesystem access. You will be given a specific objective — focus exclusively on completing it.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-p4aybgn4.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
stepCountIs
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-qqje2z05.js";
|
|
11
11
|
|
|
12
12
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
13
13
|
import { join } from "path";
|
|
@@ -3,7 +3,7 @@ import { spawnSync } from "child_process";
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@pensar/apex",
|
|
6
|
-
version: "1.
|
|
6
|
+
version: "1.2.0-canary.c3bf2e6a",
|
|
7
7
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
8
8
|
module: "src/tui/index.tsx",
|
|
9
9
|
main: "build/cli.js",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent,
|
|
3
3
|
readPlan
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-p4aybgn4.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_external,
|
|
7
7
|
init_zod
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-qqje2z05.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/pentest/agent.ts
|
|
11
11
|
import { existsSync, readdirSync, readFileSync } from "fs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
update,
|
|
17
17
|
write,
|
|
18
18
|
writeRaw
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-k529jzmy.js";
|
|
20
20
|
import {
|
|
21
21
|
parseTargetUrl
|
|
22
22
|
} from "./cli-3y0dgy56.js";
|
|
@@ -52,18 +52,18 @@ import {
|
|
|
52
52
|
union,
|
|
53
53
|
unknown,
|
|
54
54
|
zod_default
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-qqje2z05.js";
|
|
56
56
|
import {
|
|
57
57
|
signGatewayRequest
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-tj2n07me.js";
|
|
59
59
|
import {
|
|
60
60
|
config,
|
|
61
61
|
ensureValidToken,
|
|
62
62
|
getPensarApiUrl
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-2tbkec8f.js";
|
|
64
64
|
import {
|
|
65
65
|
getCurrentVersion
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-hpdt7v03.js";
|
|
67
67
|
import {
|
|
68
68
|
__commonJS,
|
|
69
69
|
__require,
|
|
@@ -99953,7 +99953,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
99953
99953
|
return threatModelLimiter(async () => {
|
|
99954
99954
|
if (ctx.abortSignal?.aborted)
|
|
99955
99955
|
return null;
|
|
99956
|
-
const { CodeAgent } = await import("./agent-
|
|
99956
|
+
const { CodeAgent } = await import("./agent-ahz0yyg1.js");
|
|
99957
99957
|
const subagentId = `threat-model-${sanitize(input.appName)}-${sanitize(input.routePath)}`;
|
|
99958
99958
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
99959
99959
|
subagentId,
|
|
@@ -100642,7 +100642,7 @@ When to use delegate_to_auth_subagent vs authenticate_session:
|
|
|
100642
100642
|
if (credentials) {
|
|
100643
100643
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
100644
100644
|
}
|
|
100645
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
100645
|
+
const { runAuthenticationAgent } = await import("./authentication-g711cewj.js");
|
|
100646
100646
|
const localBus = new AgentEventBus;
|
|
100647
100647
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
100648
100648
|
const result = await runAuthenticationAgent({
|
|
@@ -101555,7 +101555,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
101555
101555
|
});
|
|
101556
101556
|
if (cwd) {
|
|
101557
101557
|
try {
|
|
101558
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./agent-
|
|
101558
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./agent-m67k9wb1.js");
|
|
101559
101559
|
const localBus = new AgentEventBus;
|
|
101560
101560
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
101561
101561
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -101604,7 +101604,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
101604
101604
|
}
|
|
101605
101605
|
}
|
|
101606
101606
|
try {
|
|
101607
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
101607
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-qcsh44bt.js");
|
|
101608
101608
|
const localBus = new AgentEventBus;
|
|
101609
101609
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
101610
101610
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -101680,7 +101680,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
101680
101680
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
101681
101681
|
}),
|
|
101682
101682
|
execute: async ({ targets }) => {
|
|
101683
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-
|
|
101683
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-8qv8samj.js");
|
|
101684
101684
|
if (!ctx.model) {
|
|
101685
101685
|
return {
|
|
101686
101686
|
success: false,
|
|
@@ -101808,7 +101808,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
101808
101808
|
});
|
|
101809
101809
|
}
|
|
101810
101810
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
101811
|
-
const { CodeAgent } = await import("./agent-
|
|
101811
|
+
const { CodeAgent } = await import("./agent-ahz0yyg1.js");
|
|
101812
101812
|
const subagentId = `coding-agent-${agentIndex}`;
|
|
101813
101813
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
101814
101814
|
subagentId,
|
|
@@ -101869,7 +101869,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
101869
101869
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
101870
101870
|
}),
|
|
101871
101871
|
execute: async ({ target, cwd }) => {
|
|
101872
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
101872
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-8qv8samj.js");
|
|
101873
101873
|
if (!ctx.model) {
|
|
101874
101874
|
return {
|
|
101875
101875
|
success: false,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
CweEntrySchema,
|
|
3
3
|
ValidatedCweEntrySchema,
|
|
4
4
|
hasCanonicalName
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-p4aybgn4.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_external,
|
|
8
8
|
init_zod
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-qqje2z05.js";
|
|
10
10
|
|
|
11
11
|
// src/core/report/schemas.ts
|
|
12
12
|
init_zod();
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./cli-03z6pswp.js";
|
|
5
5
|
import {
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-tj2n07me.js";
|
|
8
8
|
import {
|
|
9
9
|
config,
|
|
10
10
|
ensureValidToken,
|
|
11
11
|
getPensarGatewayUrl
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-2tbkec8f.js";
|
|
13
13
|
import {
|
|
14
14
|
require_auth_errors,
|
|
15
15
|
require_token_error,
|
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-qqje2z05.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-tj2n07me.js";
|
|
14
|
+
import"./cli-2tbkec8f.js";
|
|
15
|
+
import"./cli-1c2fnr1k.js";
|
|
16
16
|
import {
|
|
17
17
|
package_default
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-hpdt7v03.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.c3bf2e6a",
|
|
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-893cww4k.js");
|
|
545
|
+
const { sessions } = await import("./index-853ymgnk.js");
|
|
546
|
+
const { config: appConfig } = await import("./index-gw3wjpds.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-wam40gbz.js");
|
|
613
|
+
const { sessions } = await import("./index-853ymgnk.js");
|
|
614
|
+
const { config: appConfig } = await import("./index-gw3wjpds.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-e3z7fysb.js");
|
|
665
|
+
const { config: appConfig } = await import("./index-gw3wjpds.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-r2k8q8m9.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-db5966jn.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-dxpqgqxa.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-x82fbz5j.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-62nm39dh.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-v68zb6d6.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-dvq4jzwm.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-ecfmp03p.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-pm109de9.js";
|
|
6
|
+
import"./cli-2tbkec8f.js";
|
|
7
|
+
import"./cli-1c2fnr1k.js";
|
|
8
|
+
import"./cli-hpdt7v03.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-k529jzmy.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-
|
|
24
|
+
} from "./cli-qqje2z05.js";
|
|
25
25
|
import"./cli-03z6pswp.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
26
|
+
import"./cli-tj2n07me.js";
|
|
27
|
+
import"./cli-2tbkec8f.js";
|
|
28
|
+
import"./cli-1c2fnr1k.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-hpdt7v03.js";
|
|
32
32
|
import"./cli-gpnb45ck.js";
|
|
33
33
|
import {
|
|
34
34
|
__require,
|