pentesting 0.21.0 → 0.21.7

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
@@ -21,25 +21,7 @@
21
21
 
22
22
  ## Purpose
23
23
 
24
- This is an pentesting support tool.
25
-
26
- ## Quick Start Direct
27
-
28
- ```bash
29
- npm install -g pentesting
30
-
31
- # LLM Configuration (required)
32
- PENTEST_API_KEY="your_api_key"
33
- PENTEST_BASE_URL="https://api.z.ai/api/anthropic"
34
- PENTEST_MODEL="glm-5"
35
-
36
- # Web Search API (optional)
37
- SEARCH_API_KEY="your_api_key"
38
- SEARCH_API_URL="https://open.bigmodel.cn/api/paas/v4/tools/web-search-pro"
39
-
40
- # Execute
41
- pentesting
42
- ```
24
+ This is a pentesting support tool.
43
25
 
44
26
  ## Quick Start with Docker (Recommended)
45
27
 
package/dist/main.js CHANGED
@@ -117,7 +117,7 @@ var INPUT_PROMPT_PATTERNS = [
117
117
  var ID_LENGTH = AGENT_LIMITS.ID_LENGTH;
118
118
  var ID_RADIX = AGENT_LIMITS.ID_RADIX;
119
119
  var APP_NAME = "Pentest AI";
120
- var APP_VERSION = "0.21.0";
120
+ var APP_VERSION = "0.21.7";
121
121
  var APP_DESCRIPTION = "Autonomous Penetration Testing AI Agent";
122
122
  var LLM_ROLES = {
123
123
  SYSTEM: "system",
@@ -7887,7 +7887,7 @@ var useAgent = (autoApprove, target) => {
7887
7887
  try {
7888
7888
  if (e.data.input && Object.keys(e.data.input).length > 0) {
7889
7889
  if (e.data.toolName === TOOL_NAMES.RUN_CMD && e.data.input.command) {
7890
- inputStr = e.data.input.command;
7890
+ inputStr = String(e.data.input.command);
7891
7891
  } else {
7892
7892
  const str = JSON.stringify(e.data.input);
7893
7893
  if (str !== "{}") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.21.0",
3
+ "version": "0.21.7",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -24,7 +24,7 @@
24
24
  "lint": "tsc --noEmit",
25
25
  "prepublishOnly": "npm run build",
26
26
  "release": "npm run release:patch",
27
- "publish:token": "npm publish --access public --cache /tmp/npm-cache",
27
+ "publish:token": "npm publish --access public",
28
28
  "release:patch": "npm version patch && npm run build && npm run publish:token",
29
29
  "release:minor": "npm version minor && npm run build && npm run publish:token",
30
30
  "release:major": "npm version major && npm run build && npm run publish:token",
@@ -86,4 +86,4 @@
86
86
  "typescript": "^5.7.3",
87
87
  "vitest": "^4.0.18"
88
88
  }
89
- }
89
+ }