pentesting 0.47.2 → 0.47.3

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 CHANGED
@@ -33,17 +33,74 @@ Pentesting support tool
33
33
 
34
34
  ## Quick Start with Docker (Recommended)
35
35
 
36
+ ### Using GLM (Default - Recommended)
37
+
38
+ GLM Web Search uses the same API key as the model, so no extra configuration needed:
39
+
40
+ ```bash
41
+ # One-time use (data deleted after exit)
42
+ docker run -it --rm \
43
+ -e PENTEST_API_KEY="your_glm_api_key" \
44
+ -e PENTEST_BASE_URL="https://open.bigmodel.cn/api/paas/v4" \
45
+ -e PENTEST_MODEL="glm-5" \
46
+ agnusdei1207/pentesting
47
+
48
+ # Persistent data (saved to ./pentest-data/)
49
+ docker run -it --rm \
50
+ -e PENTEST_API_KEY="your_glm_api_key" \
51
+ -e PENTEST_BASE_URL="https://open.bigmodel.cn/api/paas/v4" \
52
+ -e PENTEST_MODEL="glm-5" \
53
+ -v ./pentest-data:/root/.pentest \
54
+ agnusdei1207/pentesting
55
+ ```
56
+
57
+ Web search is automatically configured to use GLM Web Search with your `PENTEST_API_KEY`.
58
+
59
+ ### Using Brave Search
60
+
36
61
  ```bash
37
62
  docker run -it --rm \
38
- -e PENTEST_API_KEY="your_api_key" \
39
- -e PENTEST_BASE_URL="https://api.z.ai/api/anthropic" \
63
+ -e PENTEST_API_KEY="your_glm_api_key" \
64
+ -e PENTEST_BASE_URL="https://open.bigmodel.cn/api/paas/v4" \
40
65
  -e PENTEST_MODEL="glm-5" \
41
- -e SEARCH_API_KEY="your_api_key" \
42
- -e SEARCH_API_URL="https://open.bigmodel.cn/api/paas/v4/tools/web-search-pro" \
43
- -v pentest-data:/root/.pentest \
66
+ -e SEARCH_API_KEY="your_brave_api_key" \
67
+ -e SEARCH_API_URL="https://api.search.brave.com/res/v1/web/search" \
68
+ -v ./pentest-data:/root/.pentest \
44
69
  agnusdei1207/pentesting
45
70
  ```
46
71
 
72
+ Get Brave Search API key at: https://brave.com/search/api/
73
+
74
+ ### Using Serper (Google Search)
75
+
76
+ ```bash
77
+ docker run -it --rm \
78
+ -e PENTEST_API_KEY="your_glm_api_key" \
79
+ -e PENTEST_BASE_URL="https://open.bigmodel.cn/api/paas/v4" \
80
+ -e PENTEST_MODEL="glm-5" \
81
+ -e SEARCH_API_KEY="your_serper_api_key" \
82
+ -e SEARCH_API_URL="https://google.serper.dev/search" \
83
+ -v ./pentest-data:/root/.pentest \
84
+ agnusdei1207/pentesting
85
+ ```
86
+
87
+ Get Serper API key at: https://serper.dev/
88
+
89
+ ## Environment Variables
90
+
91
+ | Variable | Required | Default | Description |
92
+ |----------|----------|---------|-------------|
93
+ | `PENTEST_API_KEY` | ✅ Yes | - | LLM API key (also used for web search if `SEARCH_API_KEY` not set) |
94
+ | `PENTEST_BASE_URL` | No | - | Custom API endpoint URL |
95
+ | `PENTEST_MODEL` | No | - | Model name (e.g., `glm-5`) |
96
+ | `SEARCH_API_KEY` | No | Uses `PENTEST_API_KEY` | Web search API key (optional, falls back to main key) |
97
+ | `SEARCH_API_URL` | No | GLM Web Search | Web search API URL |
98
+
99
+ ### Web Search Defaults
100
+
101
+ - **Default**: GLM Web Search (`https://open.bigmodel.cn/api/paas/v4/tools/web-search-pro`)
102
+ - **API Key**: Falls back to `PENTEST_API_KEY` if `SEARCH_API_KEY` not set
103
+
47
104
  ## Issue
48
105
 
49
106
  email: agnusdei1207@gmail.com
@@ -16,7 +16,7 @@ curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMeta
16
16
 
17
17
  # S3 Bucket Enumeration
18
18
  aws s3 ls s3://<bucket> --no-sign-request
19
- aws s3 cp s3://<bucket>/sensitive.txt /tmp/ --no-sign-request
19
+ aws s3 cp s3://<bucket>/sensitive.txt .pentesting/tmp/ --no-sign-request
20
20
 
21
21
  # Azure Storage
22
22
  curl -s "https://<account>.blob.core.windows.net/<container>?restype=container&comp=list"
@@ -38,8 +38,8 @@ hydra -L users.txt -P passwords.txt <target> ftp
38
38
  showmount -e <target>
39
39
  nmap -p 2049 --script nfs-ls,nfs-showmount,nfs-statfs <target>
40
40
  # NFS Mount
41
- mkdir /tmp/nfs && mount -t nfs <target>:/<export> /tmp/nfs
42
- ls -la /tmp/nfs/
41
+ mkdir -p .pentesting/tmp/nfs && mount -t nfs <target>:/<export> .pentesting/tmp/nfs
42
+ ls -la .pentesting/tmp/nfs/
43
43
 
44
44
  # WebDAV
45
45
  davtest -url http://<target>/webdav/