Run Masscan
run_masscanScan TCP ports across IP ranges and CIDRs asynchronously, adjust packet rate, grab banners, and exclude sensitive hosts during penetration testing reconnaissance.
Instructions
Masscan is an extremely fast asynchronous TCP port scanner. Tags: network, scanner, security, pentest, enumeration, port-scanner, reconnaissance
Usage Guide:
Basic Scanning: Provide a
target_range(IP or CIDR) andports(comma-separated or range).Internet Scale: To scan the entire IPv4 space, set
target_rangeto "0.0.0.0/0".Performance: Use
rateto adjust packets-per-second (pps). Default is 1000; use 100000+ for high-speed lines.Fingerprinting: Set
bannersto True to perform banner grabbing (requires full TCP handshake).Safety: Use
exclude_rangeto prevent scanning sensitive production or medical equipment.Networking: Use
source_ip,source_mac, andgateway_macif masscan cannot auto-detect your interface.Configuration: Use
config_fileto load scan parameters from a saved .conf file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_masscan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | ||
| ports | No | ||
| banners | No | ||
| source_ip | No | ||
| source_mac | No | ||
| config_file | No | ||
| gateway_mac | No | ||
| output_file | No | ||
| target_range | No | Target IP address or range (e.g., 192.168.1.0/24 or 0.0.0.0/0). | |
| exclude_range | No | IP range to exclude from the scan. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |