Skip to content

Tool Config & Sync ​

TestNet manages scanning tools via the tool store, configures default parameters, and syncs configuration files.


1. Tool Store & Hot Upgrades ​

Click "Store" in the top right of "Recon & Automation → Automation Studio → Tool Library":

Tool Store

Steps ​

  1. Navigate to "Recon & Automation → Automation Studio → Tool Library"
  2. Click "Store" in the top right to open the drawer
  3. Browse or search for the desired tool (filter by category)
  4. Click "Install" to add the tool to your local library
  5. For installed tools with available updates, an "Update" button appears — clicking it opens a confirmation dialog comparing the current version against the target version, and confirming executes the upgrade to take effect immediately without restarting services

Built-in Tools

The tool store ships 29 security tools covering subdomain enumeration, port scanning, vulnerability detection, web fingerprinting, and more. See Built-in Tools.


Tool editor

2. Tool Editing & Runtime Parameters ​

Click "Edit" on a tool row to open the tool editor (CodeMirror with JSON Schema live validation) and maintain the tool DSL:

  • Timeouts & Retries: set the max execution duration via runtime.timeoutSeconds; retry behavior is available at the workflow level via maxRetries;
  • Resource limits: Docker-based tools can declare networking and runtime options under runtime.docker;
  • Parameter defaults: set a defaultValue per parameter in spec.params; values can be overridden at dispatch time.

2.5 Publishing a Custom Tool from Scratch ​

Using a minimal Docker-based tool as an example, walk the full "write → verify locally → register → install from store" path:

Step 1: Write the Tool DSL ​

Create tools/{tool-id}/1.0.0.yaml (versioned file naming) with this minimal skeleton (full fields in tool-vnext.schema.json; the editor also lints it live via Ajv):

yaml
kind: Tool
metadata:
  id: my-probe
  name: My Probe
  version: 1.0.0
  description: Example: custom probing for a target URL
  category: SCAN
spec:
  inputs:
    target:
      required: true
      accepts: [WEB]
      resolve:
        WEB: '{{asset.url}}'
      description: Target URL to probe
  runtime:
    type: DOCKER
    timeoutSeconds: 600
    docker:
      image:
        default: registry.cn-hangzhou.aliyuncs.com/testnet-tools/my-probe:latest
      args: ['-u', '{{input.target}}']
  outputs:
    web:
      assetType: WEB
      parser:
        type: LINE
      map:
        url: $.url
      identity:
        field: url
      description: Discovered web endpoints

Step 2: Verify Locally ​

bash
# Static checks + mock execution (no Docker/network)
testnet-client verify --spec tools/my-probe/1.0.0.yaml --mock mock.yaml --mode offline
# Real execution allowing image pulls
testnet-client verify --spec tools/my-probe/1.0.0.yaml --mode full

Step 3: Register in the Store ​

  1. Put the directory under tools/{tool-id}/ in the testnet-registry repository;
  2. Run the repo's regenerate_index.py to regenerate index.json (the repo's CI guards index consistency and rejects mismatches);
  3. Commit and push; wait for the store index pipeline to refresh.

Step 4: Install from the Console ​

Open the "Store" drawer on the Tool Library page — the new tool appears there; click "Install" to pull the definition. It can then be orchestrated by tool id in any workflow, and its external config files can be synced (next section).

3. Remote Config File Sync ​

For tools requiring external rule libraries or config dictionaries (e.g., Nuclei templates, wordlists, API key files), TestNet provides remote config file sync:

Steps ​

  1. Navigate to "Recon & Automation" → "Automation Studio" → "Config Files"
  2. Click "New" to upload or edit a configuration file online
  3. The system automatically records the version upon saving
  4. Reference the config file in the tool's execution settings
  5. Scanning nodes automatically verify and sync the latest version on task execution

Version Consistency

All scanning nodes always use the same config file version — nodes automatically pull the latest version.


Remote config file sync management

最近更新

Released under the MIT License