pentesting 0.7.31 → 0.7.33

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.
Files changed (2) hide show
  1. package/README.md +58 -82
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -35,26 +35,61 @@ pentesting
35
35
 
36
36
  ---
37
37
 
38
- ## Features
38
+ ## 🧠 Philosophy: Think Like a Hacker
39
+
40
+ **Pentesting is not a brute-force tool.** It's an intelligent agent that thinks strategically.
41
+
42
+ ### Strategic Decision Framework
43
+
44
+ Every action is evaluated using:
45
+
46
+ ```
47
+ Value = (Probability × CVSS Impact) / Time Cost
48
+ ```
49
+
50
+ The agent only executes actions with **confidence >50%**. Below that, it finds a better approach.
51
+
52
+ ### Self-Reflection Before Every Action
53
+
54
+ Before running any tool, the agent asks:
55
+ - "What exactly am I trying to learn?"
56
+ - "Is this the FASTEST way to get that information?"
57
+ - "Have I already tried this? What happened?"
58
+ - "Is there a simpler approach?"
59
+
60
+ ### Mandatory Fallback Strategy
61
+
62
+ When a tool fails, the agent immediately tries alternatives:
63
+
64
+ | Task | Primary | Fallback 1 | Fallback 2 |
65
+ |------|---------|------------|------------|
66
+ | Subdomain | subfinder | ffuf | amass |
67
+ | Directory | gobuster | ffuf | dirsearch |
68
+ | Port Scan | rustscan | nmap | masscan |
69
+
70
+ ---
71
+
72
+ ## 🔥 Why Pentesting?
73
+
74
+ | Feature | Traditional Tools | Pentesting Agent |
75
+ |---------|-------------------|------------------|
76
+ | Decision Making | Manual | AI-driven with confidence scoring |
77
+ | Tool Selection | You choose | Auto-selects based on context |
78
+ | Failure Handling | You retry | Auto-fallback to alternatives |
79
+ | Attack Planning | Manual prioritization | CVSS-based priority matrix |
80
+ | Context Awareness | None | Remembers all findings |
81
+ | Reporting | Manual | Auto-generated findings |
82
+
83
+ ---
84
+
85
+ ## ✨ Core Capabilities
39
86
 
40
- ### Core Capabilities
41
- - **Intelligent Agent**: Self-reflection and decision framework (inspired by Claude Code)
42
- - **Confidence Scoring**: Only acts on actions with >50% success probability
43
87
  - **10-Phase Attack Workflow**: Recon → Scan → Enum → Vuln Analysis → Exploitation → PrivEsc → Pivot → Persist → Exfil → Report
44
- - **Auto Docker Management**: Automatically pulls and starts `pentesting-tools` container
45
- - **Multi-Target Attack**: Register multiple targets and attack them sequentially
46
- - **Real-time Feedback**: See thinking process, tool calls, and results live
47
- - **ESC Interrupt**: Stop execution anytime with ESC key
48
- - **Rainbow Spinner**: Visual feedback with cycling colors
49
-
50
- ### v0.7.16 New Features
51
- - **Self-Reflection**: Agent asks "Is this the fastest way?" before every action
52
- - **Decision Framework**: Value = (Probability × Impact) / Time Cost
53
- - **Concrete Tool Commands**: Exact ffuf, nmap, hydra syntax with wordlist paths
54
- - **Auto Docker**: Container starts automatically when tools are missing
55
- - **Thinking Display**: See `[thinking]` and `[reasoning]` messages
56
- - **Token Label**: Status bar shows `3k tok` instead of just `3k`
57
- - **Approval Fix**: "Approve always" now works correctly (no repeat prompts)
88
+ - **Auto Docker Management**: Pulls and starts tool container automatically
89
+ - **Multi-Target Attack**: Attack multiple targets sequentially
90
+ - **Real-time Feedback**: See thinking process, tool calls, results live
91
+ - **Session Persistence**: Save/resume attack sessions
92
+ - **Context Compaction**: Automatic history summarization
58
93
 
59
94
  ---
60
95
 
@@ -329,40 +364,6 @@ await agent.addMCPServer('security-tools', 'docker', [
329
364
 
330
365
  ---
331
366
 
332
- ## 📁 Project Structure
333
-
334
- ```
335
- src/
336
- ├── index.tsx # CLI entry point
337
- ├── cli/
338
- │ ├── app.tsx # TUI with streaming, multi-target, approval
339
- │ ├── components/ # Rich display components
340
- │ └── utils/ # Keyboard listener
341
- ├── core/
342
- │ ├── agent/ # Agent implementations
343
- │ ├── approval/ # Tool approval system
344
- │ ├── commands/ # Slash command registry
345
- │ ├── context/ # Checkpoint + compaction
346
- │ ├── display/ # Rich output blocks
347
- │ ├── hooks/ # Event hooks
348
- │ ├── loop/ # Ralph autonomous loop
349
- │ ├── replay/ # Session replay
350
- │ ├── session/ # Session persistence
351
- │ ├── skill/ # Flow skills (Mermaid/D2)
352
- │ ├── streaming/ # Real-time streaming
353
- │ ├── update/ # Auto-update system
354
- │ ├── prompts/ # System prompts
355
- │ └── tools/ # Tool definitions & executor
356
- ├── agents/ # 9 built-in specialized agents
357
- ├── commands/ # Built-in slash commands
358
- ├── wire/ # JSONL logging + Wire protocol
359
- ├── mcp/ # MCP client integration
360
- ├── utils/ # Clipboard, retry utilities
361
- └── config/ # Constants, theme
362
- ```
363
-
364
- ---
365
-
366
367
  ## 🛠️ Development
367
368
 
368
369
  ```bash
@@ -380,39 +381,14 @@ npm run build
380
381
  npm run dev
381
382
  ```
382
383
 
383
- ---
384
-
385
- ## Changelog
386
-
387
- ### v0.7.16
388
- - Self-reflection framework (Claude Code inspired)
389
- - Confidence scoring (0-100) for decisions
390
- - Decision framework: Value = (Probability × Impact) / Time Cost
391
- - Concrete tool commands with wordlist paths
392
- - Efficiency rules and stop conditions
393
-
394
- ### v0.7.15
395
- - Comprehensive prompt improvements
396
- - Approval fix (double popup bug)
397
- - Token label in status bar (`3k tok`)
398
-
399
- ### v0.7.14
400
- - Auto Docker management
401
- - Container auto-start on first use
402
-
403
- ### v0.7.13
404
- - Rainbow spinner
405
- - Thinking/reasoning display
406
- - Monochrome theme
407
- - Tab mode toggle
384
+ ## 📄 License
385
+ ## Documentation
408
386
 
409
- ### v0.7.7
410
- - Multi-target management (`/target add/list/rm/clear`)
411
- - Batch attack (`/start all`)
412
- - `set_target` tool for agent
387
+ - [Architecture](./docs/ARCHITECTURE.md) - System design and components
388
+ - [Docker Image](https://hub.docker.com/r/agnusdei1207/pentesting-tools) - Pre-built security tools
413
389
 
414
390
  ---
415
391
 
416
- ## 📄 License
392
+ ## �📄 License
417
393
 
418
394
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.7.31",
3
+ "version": "0.7.33",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",