masscan_scan
Scan large IP ranges to uncover open ports using Masscan's high-speed scanning. Returns structured results per host.
Instructions
Scan a network range for open ports at high speed using Masscan.
Masscan is significantly faster than Nmap for large networks but produces less detailed results (no service detection). Ideal for initial port discovery across large IP ranges.
Args: target: IP address, hostname, or CIDR range (e.g. "192.168.1.0/24"). ports: Port specification (e.g. "80", "22-443", "22,80,443"). rate: Packets per second. Keep low (< 10000) for stealth. Warning: High rates may trigger IDS/IPS alerts or crash routers. timeout: Override default scan timeout in seconds.
Returns: Structured results with discovered open ports per host.
Note: - Masscan requires root/sudo privileges to send raw packets. - Use lower rates (100-1000) for stability and stealth. - Target must be in tengu.toml [targets].allowed_hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| ports | No | 1-1024 | |
| target | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||