Crates.io | netutil |
lib.rs | netutil |
version | 0.0.0 |
source | src |
created_at | 2020-10-05 22:23:53.683689 |
updated_at | 2020-10-05 22:23:53.683689 |
description | Network Management Utility |
homepage | |
repository | https://github.com/EstebanBorai/netutil |
max_upload_size | |
id | 296445 |
size | 23,092 |
This application is under development, commands/API may change
To install netutil in your system you must clone the repository, build the package targeting release
and run cargo install
.
cargo install netutil
$ netutil --version
As this is a cargo
binary, you can easily uninstall the package issuing cargo uninstall --bin netutil
.
netutil is a simple port sniffer tool, which helps to know which ports are open in a given range by attempting to open TCP
connections.
To test a single address you must run:
$ netutil 127.0.0.1:8080
This command will return an output similar to the following:
> • 127.0.0.1:8080 - Open
This output means that the port 8080
is open in the IP address (local IP address), 127.0.0.1
.
A set of ports can also be tested using the -r
argument, which stands for "range":
$ netutil 127.0.0.1:8080 -r 8100
The range is made from the
target
address port until therange
argument value port. In the case above the range would be [8080, 8100].
As a set of ports are going to be tested, a confirmation is prompted before initializing the task:
$ netutil 127.0.0.1:8080 -r 8100
> Are you sure you want to scan on 127.0.0.1:8080 from port 8080 to 8100? (y/n):
If no ports are available after executing the task, then a message like the following will appear:
> No ports open in address 127.0.0.1:8080 for the port range 8080 to 8100
Otherwise a list of available addresses is shown:
> • 127.0.0.1:8080 - Open
> • 127.0.0.1:8084 - Open
> • 127.0.0.1:8095 - Open
> • 127.0.0.1:8099 - Open
> • 127.0.0.1:8100 - Open
time cargo run -- 127.0.0.1:3000 -r 65535
Are you sure you want to scan on 127.0.0.1:3000 from port 3000 to 65535? (y/n): y
Scanning on 127.0.0.1:3000
Open ports:
• 127.0.0.1:5432
• 127.0.0.1:8080
• 127.0.0.1:47786
• 127.0.0.1:53708
cargo run -- 127.0.0.1:3000 -r 65535 5,14s user 10,79s system 165% cpu 9,601 total