Rustscan is a fast and simple port scanning tool for Linux. It can scan IP addresses, domains, and port ranges to find open ports. You can also scan specific ports, exclude ports, scan UDP ports, and use Rustscan with Nmap. Rustscan gives you several simple options to scan and check network ports.
Features of Rustscan:
- Scan IP addresses and hostnames.
- Scan specific ports.
- Scan a range of ports.
- Scan multiple targets.
- Scan UDP ports.
- Control scanning speed and timeout.
- Save results in a simple format.
- Use Rustscan with Nmap.
Rustscan Installation Commands
You can easily install Rustscan using the apt package manager. Run the commands below to install Rustscan and check its version.
First, update package manager:
apt update
Then install Rustscan:
apt install rustscan
After installation, check if Rustscan is working:
rustscan --version
You can also view all available options with:
rustscan --help
Rustscan is now installed and ready to use.
Rustscan Usage Commands
After installing Rustscan, you can start using it to scan hosts and check open ports. Below are some simple commands to help you get started.
Scan a host:
rustscan -a example.com
Scan an IP address:
rustscan -a 192.168.1.1
Scan specific ports:
rustscan -a example.com -p 80,443,8080
Scan a range of ports:
rustscan -a example.com -r 1-1000
Scan the top 1000 ports:
rustscan -a example.com --top
Scan multiple targets:
rustscan -a 192.168.1.1,192.168.1.2
Use a file containing targets:
rustscan -a targets.txt
Use greppable mode:
rustscan -a example.com -g
Greppable mode displays only the discovered ports, making the output easier to use with other commands or save to a file.
Set the batch size:
rustscan -a example.com -b 4500
Set the connection timeout:
rustscan -a example.com -t 2000
Set the number of connection tries:
rustscan -a example.com --tries 2
Set the open file limit:
rustscan -a example.com -u 5000
Use random port scanning order:
rustscan -a example.com --scan-order random
Use serial port scanning:
rustscan -a example.com --scan-order serial
Exclude specific ports:
rustscan -a example.com -e 80,443
Exclude a specific address:
rustscan -a 192.168.1.0/24 -x 192.168.1.10
Use custom DNS resolvers:
rustscan -a example.com --resolver 8.8.8.8,1.1.1.1
Scan UDP ports:
rustscan -a example.com --udp
Hide the Rustscan banner:
rustscan -a example.com --no-banner
Disable the configuration file:
rustscan -a example.com -n
Use a custom configuration file:
rustscan -a example.com --config-path rustscan.toml
Disable scripting:
rustscan -a example.com --scripts none
Use the default scripts:
rustscan -a example.com --scripts default
Use accessible mode:
rustscan -a example.com --accessible
You can also use Rustscan with Nmap by adding an Nmap command after --. For example:
rustscan -a example.com -- -sV
It will performs the Rustscan port scan and then passes the discovered ports to Nmap for further checking.
Use a custom Nmap command:
rustscan -a example.com -- -sC -sV
You can use these commands to scan hosts, check open ports, scan specific port ranges, and control the scan speed.
Rustscan Overview
Rustscan is a simple tool for checking open ports on a target. It provides different options to help you perform port scans in a simple way. You can use many options to control the scan and get useful information about available ports and services.



