Information Gathering
RustScan is a modern, high-speed port scanner built in Rust that can find all open ports within seconds and automatically pipes them directly into Nmap for deeper script processing.
sudo apt install rustscan
rustscan -a <target> [options]
RustScan is a modern port scanner written in Rust that combines extreme speed with automatic Nmap integration. It can scan all 65,535 ports on a target in seconds and seamlessly pipe the discovered open ports into Nmap for detailed service detection.
Created in 2020, RustScan was designed to solve the speed problem of traditional port scanners while maintaining compatibility with the industry-standard Nmap tool. Its adaptive learning system adjusts to network conditions for optimal performance.
The tool's philosophy is simple: find ports fast with RustScan, analyze them deep with Nmap. This workflow combines RustScan's speed with Nmap's comprehensive service detection, OS fingerprinting, and scripting capabilities.
rustscan -a 192.168.1.1 --range 1-65535Full port sweep - Identify all active target endpoints within seconds using high-concurrency worker blocksrustscan -a 192.168.1.1Basic scanrustscan -a 192.168.1.1 -- -sVWith Nmap version scanrustscan -a 192.168.1.1 -b 1000Batch size limitrustscan -a 192.168.1.1 -p 22,80,443Specific portsrustscan -a 192.168.1.100Quick port scan with default settingsrustscan -a 192.168.1.100 -- -sVPass flags to nmap for version detectionrustscan -a 192.168.1.100 -b 500Set batch size to 500rustscan -a 192.168.1.100 --no-nmapDisable nmap handoffrustscan -a 192.168.1.100 -p 80,443,8080Scan specific portsrustscan -a 192.168.1.100 -u 5000Set UDP timeout to 5000msrustscan -a 192.168.1.100 --greppableGrep-friendly outputrustscan -a 192.168.1.100 -w 15001500ms wait between scansrustscan -a 192.168.1.100 --rangeScan port rangerustscan -a 192.168.1.100 --accessibleAccessible output modeFind all open ports on a target in seconds using Rust's concurrency.
Automatically pipe discovered ports into Nmap for service detection.
Scan small to medium networks rapidly for initial reconnaissance.
Integrate into automated reconnaissance pipelines.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.