Skip to content
Bee edited this page Sep 7, 2020 · 13 revisions

Here are some things you may want to do with RustScan!

Multiple IP Scanning

You can scan multiple IPs using a comma separated list like so:

rustscan 127.0.0.1,0.0.0.0

Host Scanning

RustScan can also scan hosts, like so:

➜ rustscan www.google.com, 127.0.0.1
Open 216.58.210.36:1
Open 216.58.210.36:80
Open 216.58.210.36:443
Open 127.0.0.1:53
Open 127.0.0.1:631

Individual Port Scanning

RustScan can scan individual ports, like so:

➜ rustscan 127.0.0.1 -p 53
53

Multiple selected port scanning

You can input a comma separated list of ports to scan:

➜ rustscan 127.0.0.1 -p 53,80,121,65535
53

Ranges of ports

To scan a range of ports:

To run:

➜ rustscan 127.0.0.1 --range 1-1000    
53,631

Adjusting the Nmap arguments

RustScan, at the moment, runs Nmap by default.

You can adjust the arguments like so:

rustscan 127.0.0.1 -- -A -sC

To run:

nmap -Pn -vvv -p $PORTS -A -sC 127.0.0.1

Random Port Ordering

If you want to scan ports in a random order (which will help with not setting off firewalls) run RustScan like this:

➜ rustscan 127.0.0.1 --range 1-1000 --scan-order "Random"
53,631