cancelScan
Stop active scans by providing the scan ID. Integrates with Pentest MCP to manage and halt penetration testing processes effectively.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scanId | Yes | The ID of the scan to cancel |
Implementation Reference
- node_modules/node-nmap/index.js:207-210 (handler)The handler function for cancelling an ongoing Nmap scan. It kills the child process running nmap and emits an 'error' event indicating the scan was cancelled.cancelScan() { this.killChild(); this.emit('error', "Scan cancelled"); }