GO KALI FREE

RustScan

Information Gathering

Beginnerhigh risk

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.

Installation

sudo apt install rustscan

Basic Syntax

rustscan -a <target> [options]

Quick Facts

Full Name
RustScan
License
MIT
Author
RustScan Community
Written In
Rust
Platforms
Linux, macOS, Windows
Category
Port Scanner
First Release
2020
Key Feature
Nmap Auto-Integration

Tool Overview

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.

Common Commands

rustscan -a 192.168.1.1 --range 1-65535Full port sweep - Identify all active target endpoints within seconds using high-concurrency worker blocks
rustscan -a 192.168.1.1Basic scan
rustscan -a 192.168.1.1 -- -sVWith Nmap version scan
rustscan -a 192.168.1.1 -b 1000Batch size limit
rustscan -a 192.168.1.1 -p 22,80,443Specific ports
rustscan -a 192.168.1.100Quick port scan with default settings
rustscan -a 192.168.1.100 -- -sVPass flags to nmap for version detection
rustscan -a 192.168.1.100 -b 500Set batch size to 500
rustscan -a 192.168.1.100 --no-nmapDisable nmap handoff
rustscan -a 192.168.1.100 -p 80,443,8080Scan specific ports
rustscan -a 192.168.1.100 -u 5000Set UDP timeout to 5000ms
rustscan -a 192.168.1.100 --greppableGrep-friendly output
rustscan -a 192.168.1.100 -w 15001500ms wait between scans
rustscan -a 192.168.1.100 --rangeScan port range
rustscan -a 192.168.1.100 --accessibleAccessible output mode

Step-by-Step Guide

  1. 1Launch rustscan to quickly isolate all open ports across the target
  2. 2Allow the tool to automatically hand off the discovered ports to Nmap
  3. 3Analyze the final consolidated scan output
  4. 4Narrow your focus to the services returning interesting banners or versions

Use Cases

Fast Port Discovery

Find all open ports on a target in seconds using Rust's concurrency.

Nmap Integration

Automatically pipe discovered ports into Nmap for service detection.

Quick Network Scans

Scan small to medium networks rapidly for initial reconnaissance.

Scripting Automation

Integrate into automated reconnaissance pipelines.

Key Features

Related Tools

Nmap

Information Gathering

Industry-standard scanner for deep service analysis.

Masscan

Information Gathering

Internet-scale scanner for massive IP ranges.

Frequently Asked Questions

What is RustScan used for?

RustScan is a modern port scanner written in Rust that finds open ports extremely fast and automatically pipes the results into Nmap for deeper analysis. It combines the speed of modern programming with Nmap's detailed scanning capabilities.

How is RustScan different from Nmap?

RustScan focuses on speed, finding open ports in seconds using Rust's concurrency model. Nmap provides detailed service detection and OS fingerprinting but is slower. RustScan automatically passes discovered ports to Nmap.

Does RustScan require Nmap?

RustScan can run standalone for port discovery, but its key feature is automatic Nmap integration. It pipes discovered ports into Nmap for service detection, combining speed with depth.

Is RustScan faster than Nmap?

Yes, RustScan is significantly faster for port discovery. It can scan all 65535 ports in seconds. Nmap's port scanning is slower but provides more detailed information about each port.

How do I install RustScan?

Install RustScan using: sudo apt install rustscan on Kali Linux. On other systems, install via cargo: cargo install rustscan, or download from the GitHub releases page.

How do I use RustScan for a full port scan?

Run rustscan -a target --range 1-65535 to scan all ports. Use rustscan -a target -- -sV to pipe results into Nmap for service detection.

What are the most common RustScan commands?

Common commands include: rustscan -a target (basic scan), rustscan -a target -- -sV (with Nmap version detection), rustscan -a target -b 1000 (custom batch size), rustscan -a target -p 22,80,443 (specific ports).

What is the -b flag in RustScan?

The -b flag sets the batch size, controlling how many packets RustScan sends simultaneously. Higher values increase speed but may cause packet loss. Start with the default and increase if needed.

How does RustScan compare to Masscan?

Masscan is faster for internet-wide scanning (10M pps) but lacks Nmap integration. RustScan offers automatic Nmap piping for service detection. Use Masscan for huge networks; RustScan for targeted scans with Nmap analysis.

Is RustScan legal to use?

RustScan itself is legal software. However, scanning networks without permission from the owner may violate laws. Always obtain written authorization before scanning networks you don't own or manage.

Why use RustScan instead of just Nmap?

RustScan finds ports in seconds, then Nmap analyzes them. Running Nmap with -p- for all ports takes minutes; RustScan does it in seconds. The combination saves time while providing the same depth of analysis.

What is the --no-nmap flag in RustScan?

The --no-nmap flag runs RustScan without automatic Nmap integration. This is useful when you only need port discovery or want to use a different tool for service detection.

How do I pass Nmap flags to RustScan?

Use the -- separator to pass flags to Nmap: rustscan -a target -- -sV -sC. Everything after -- is passed directly to Nmap.

What are RustScan's limitations?

RustScan doesn't perform service detection or OS fingerprinting without Nmap. It's also newer with a smaller community. For comprehensive analysis, always pipe results to Nmap.

How do I scan specific ports with RustScan?

Use the -p flag: rustscan -a target -p 22,80,443. This scans only the specified ports instead of all 65535.

What is RustScan's adaptive learning?

RustScan's adaptive learning adjusts scanning speed based on network conditions. It automatically slows down if it detects packet loss, ensuring accurate results without manual configuration.

How long does a RustScan scan take?

A basic RustScan scan of all 65535 ports completes in 3-10 seconds. With Nmap integration, the total time depends on the number of open ports found and Nmap's scanning depth.

Does RustScan work on Windows?

Yes, RustScan runs on Windows, Linux, and macOS. Install via the GitHub releases page or cargo (Rust package manager) on any supported platform.

Tags

#reconnaissance#port-scanning#rust#fast#nmap-integration

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.