pentesting 0.73.1 → 0.73.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 +3 -14
- package/dist/{agent-tool-COMG67ES.js → agent-tool-HYQGTZC4.js} +2 -2
- package/dist/{chunk-EUWDAGHZ.js → chunk-BGEXGHPB.js} +2 -2
- package/dist/{chunk-ZQAVMACI.js → chunk-KBJPZDIL.js} +1 -1
- package/dist/main.js +4 -5
- package/dist/{persistence-SNUMO4WG.js → persistence-VFIOGTRC.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="https://api.iconify.design/game-icons:fizzing-flask.svg?color=%
|
|
3
|
+
<img src="https://api.iconify.design/game-icons:fizzing-flask.svg?color=%232496ED" width="80" height="80" alt="Pentesting Agent" />
|
|
4
4
|
|
|
5
5
|
# pentesting
|
|
6
6
|
> **Autonomous Offensive Security AI Agent**
|
|
7
7
|
|
|
8
|
-
[](https://www.npmjs.org/package/pentesting)
|
|
9
|
+
[](https://hub.docker.com/r/agnusdei1207/pentesting)
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -32,17 +32,6 @@
|
|
|
32
32
|
|
|
33
33
|
Pentesting support tool. Can autonomously execute network penetration tests or assist with generic Capture The Flag (CTF) challenges (such as Reverse Engineering, Cryptography, and binary analysis) without requiring a specific network target.
|
|
34
34
|
|
|
35
|
-
## Architecture Notes
|
|
36
|
-
|
|
37
|
-
- User input is preprocessed by a dedicated input processor LLM before the main loop acts on it.
|
|
38
|
-
- Durable engagement guidance, sensitive data handling rules, and reusable operator constraints are merged into `.pentesting/memory/policy.md`.
|
|
39
|
-
- Both the strategist and the main prompt builder read that policy document every turn.
|
|
40
|
-
- Each completed turn is compressed into `.pentesting/turns/{N}-memory.md`, with provenance metadata describing who wrote it and what sources were used.
|
|
41
|
-
- Automatically maintained LLM documents are intentionally small in number: bounded turn memories, one `policy.md`, one merged `persistent-knowledge.json`, and on-demand reports only.
|
|
42
|
-
- Interactive prompts are brokered through a single active input slot in the TUI. Additional prompts wait in a hidden queue and are promoted one at a time.
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
35
|
## Quick Start
|
|
47
36
|
|
|
48
37
|
### z.ai — GLM Coding Plan Max (Recommended)
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
CoreAgent,
|
|
4
4
|
createContextExtractor,
|
|
5
5
|
getLLMClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BGEXGHPB.js";
|
|
7
7
|
import {
|
|
8
8
|
AGENT_ROLES,
|
|
9
9
|
EVENT_TYPES,
|
|
10
10
|
LLM_ROLES,
|
|
11
11
|
TOOL_NAMES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KBJPZDIL.js";
|
|
13
13
|
import {
|
|
14
14
|
getActiveProcessSummary
|
|
15
15
|
} from "./chunk-YFDJI3GO.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
startBackgroundProcess,
|
|
61
61
|
stopBackgroundProcess,
|
|
62
62
|
writeFileContent
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-KBJPZDIL.js";
|
|
64
64
|
import {
|
|
65
65
|
DETECTION_PATTERNS,
|
|
66
66
|
HEALTH_CONFIG,
|
|
@@ -11570,7 +11570,7 @@ After completion: record key loot/findings from the sub-agent output to canonica
|
|
|
11570
11570
|
context: params["context"],
|
|
11571
11571
|
timeLimitMin: params["time_limit_min"]
|
|
11572
11572
|
};
|
|
11573
|
-
const { AgentTool } = await import("./agent-tool-
|
|
11573
|
+
const { AgentTool } = await import("./agent-tool-HYQGTZC4.js");
|
|
11574
11574
|
const executor = new AgentTool(state, events, scopeGuard, approvalGate);
|
|
11575
11575
|
const result = await executor.execute(input);
|
|
11576
11576
|
const lines = [
|
|
@@ -235,7 +235,7 @@ var INPUT_PROMPT_PATTERNS = [
|
|
|
235
235
|
|
|
236
236
|
// src/shared/constants/agent.ts
|
|
237
237
|
var APP_NAME = "Pentest AI";
|
|
238
|
-
var APP_VERSION = "0.73.
|
|
238
|
+
var APP_VERSION = "0.73.2";
|
|
239
239
|
var APP_DESCRIPTION = "Autonomous Penetration Testing AI Agent";
|
|
240
240
|
var LLM_ROLES = {
|
|
241
241
|
SYSTEM: "system",
|
package/dist/main.js
CHANGED
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
rotateTurnRecords,
|
|
40
40
|
setCurrentTurn,
|
|
41
41
|
writePolicyDocument
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-BGEXGHPB.js";
|
|
43
43
|
import {
|
|
44
44
|
AGENT_ROLES,
|
|
45
45
|
APP_DESCRIPTION,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
setActiveSessionRuntime,
|
|
80
80
|
setTorEnabled,
|
|
81
81
|
snapshotToPrompt
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-KBJPZDIL.js";
|
|
83
83
|
import {
|
|
84
84
|
EXIT_CODES,
|
|
85
85
|
getPipelineConfig,
|
|
@@ -1409,7 +1409,7 @@ var makeRotateTurns = (_llm, _opts) => async (_ctx) => {
|
|
|
1409
1409
|
};
|
|
1410
1410
|
var makeSaveSession = (_llm, _opts) => async (ctx) => {
|
|
1411
1411
|
try {
|
|
1412
|
-
const { saveState: saveState2 } = await import("./persistence-
|
|
1412
|
+
const { saveState: saveState2 } = await import("./persistence-VFIOGTRC.js");
|
|
1413
1413
|
saveState2(ctx.state);
|
|
1414
1414
|
} catch {
|
|
1415
1415
|
}
|
|
@@ -6544,7 +6544,6 @@ var SplashScreen = ({
|
|
|
6544
6544
|
const frame = COIN_FRAMES[tick % COIN_FRAMES.length];
|
|
6545
6545
|
const normalizedFrame = normalizeFrameLines(frame);
|
|
6546
6546
|
const coinColor = coinHue(tick);
|
|
6547
|
-
const isFading = elapsed > durationMs - 500;
|
|
6548
6547
|
return /* @__PURE__ */ jsx23(
|
|
6549
6548
|
Box19,
|
|
6550
6549
|
{
|
|
@@ -6554,7 +6553,7 @@ var SplashScreen = ({
|
|
|
6554
6553
|
alignItems: "center",
|
|
6555
6554
|
justifyContent: "center",
|
|
6556
6555
|
children: /* @__PURE__ */ jsx23(Box19, { flexDirection: "column", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ jsx23(Box19, { flexDirection: "column", alignItems: "center", children: normalizedFrame.lines.map((line, i) => {
|
|
6557
|
-
return /* @__PURE__ */ jsx23(Box19, { flexShrink: 0, height: 1, width: normalizedFrame.width, children: /* @__PURE__ */ jsx23(Text19, { color: coinColor, bold:
|
|
6556
|
+
return /* @__PURE__ */ jsx23(Box19, { flexShrink: 0, height: 1, width: normalizedFrame.width, children: /* @__PURE__ */ jsx23(Text19, { color: coinColor, bold: true, wrap: "truncate-end", children: line }) }, i);
|
|
6558
6557
|
}) }) })
|
|
6559
6558
|
}
|
|
6560
6559
|
);
|