pentesting 0.16.6 → 0.16.8
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 +45 -0
- package/dist/main.js +4588 -1020
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,6 +30,51 @@ export PENTEST_MODEL="glm-5"
|
|
|
30
30
|
|
|
31
31
|
pentesting
|
|
32
32
|
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Environment Variables
|
|
37
|
+
|
|
38
|
+
### Required (LLM)
|
|
39
|
+
|
|
40
|
+
| Variable | Description | Example |
|
|
41
|
+
|----------|-------------|---------|
|
|
42
|
+
| `PENTEST_API_KEY` | API key for LLM provider | `your_api_key` |
|
|
43
|
+
| `PENTEST_BASE_URL` | API endpoint URL | `https://api.z.ai/api/anthropic` |
|
|
44
|
+
| `PENTEST_MODEL` | Model name | `glm-5` |
|
|
45
|
+
|
|
46
|
+
### Optional (Web Search API)
|
|
47
|
+
|
|
48
|
+
| Variable | Description | Example |
|
|
49
|
+
|----------|-------------|---------|
|
|
50
|
+
| `SEARCH_API_KEY` | Search API key | `your_api_key` |
|
|
51
|
+
| `SEARCH_API_URL` | Search API endpoint | `https://open.bigmodel.cn/api/paas/v4/tools/web-search-pro` |
|
|
52
|
+
| `BROWSER_HEADLESS` | Set `false` to show browser for captcha | `false` |
|
|
53
|
+
|
|
54
|
+
**Supported Search APIs:**
|
|
55
|
+
|
|
56
|
+
| Provider | SEARCH_API_URL |
|
|
57
|
+
|----------|----------------|
|
|
58
|
+
| GLM (Zhipu) | `https://open.bigmodel.cn/api/paas/v4/tools/web-search-pro` |
|
|
59
|
+
| Brave | `https://api.search.brave.com/res/v1/web/search` |
|
|
60
|
+
| Serper | `https://google.serper.dev/search` |
|
|
61
|
+
|
|
62
|
+
### Example `.env`
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# LLM Configuration
|
|
66
|
+
PENTEST_API_KEY=your_api_key_here
|
|
67
|
+
PENTEST_BASE_URL=https://api.z.ai/api/anthropic
|
|
68
|
+
PENTEST_MODEL=glm-5
|
|
69
|
+
|
|
70
|
+
# Web Search API
|
|
71
|
+
SEARCH_API_KEY=your_api_key
|
|
72
|
+
SEARCH_API_URL=https://open.bigmodel.cn/api/paas/v4/tools/web-search-pro
|
|
73
|
+
|
|
74
|
+
# Browser (optional - for captcha handling)
|
|
75
|
+
BROWSER_HEADLESS=false
|
|
76
|
+
```
|
|
77
|
+
|
|
33
78
|
---
|
|
34
79
|
|
|
35
80
|
## Issue Report
|