Crates.io | rustmap |
lib.rs | rustmap |
version | 0.1.2 |
source | src |
created_at | 2020-04-12 05:01:56.21384 |
updated_at | 2020-06-24 07:12:05.378636 |
description | A very simple "Nmap-like" program that can scan for hosts and open TCP ports. |
homepage | https://github.com/sommd/rustmap#readme |
repository | https://github.com/sommd/rustmap |
max_upload_size | |
id | 228896 |
size | 43,268 |
Rustmap is a very simple "Nmap-like" program that can scan for hosts and open TCP ports. It is mostly written for educational purposes (I wanted to learn Rust, and learn a bit more about how Nmap works) so it's quite slow and doesn't have many features.
cargo install rustmap
Check if a single host is up:
sudo rustmap 127.0.0.1
Scan all TCP ports for a single host:
sudo rustmap 127.0.0.1 -p
Scan all TCP ports for multiple hosts:
sudo rustmap 127.0.0.1 ::1 -p
Scan for specific ports in an address range:
sudo rustmap 127.0.0.0/8 -p 22,80,443
rustmap [OPTIONS] <addr-ranges>...
-h, --help
Prints help information
-V, --version
Prints version information
-p, --ports <ports>...
Probe ports for each host and optionally specify which ports.
Ports can be specified as a comma-separated list, or left unspecified to scan all ports.
-t, --timeout <timeout>
Timeout for pinging each host and probing each port.
Parsing is provided by the parse_duration crate and supports almost any notation. E.g. 1s
, 10 seconds
, 1 hour, 15 minutes, 12 seconds
, 10m32s112ms
. [default: 1s
]
<addr-ranges>...
IP addresses to scan.
Supports IPv4 notation (e.g. 127.0.0.1
), IPv6 notation (e.g. ::1
), IPv4-mapped IPv6 notation (e.g. ::ffff::1.1.1.1
) and CIDR notation (e.g. 192.168.0.0/16
, fe80::/10
).