Crates.io | lsip |
lib.rs | lsip |
version | 0.0.2 |
source | src |
created_at | 2023-03-06 01:10:07.132915 |
updated_at | 2023-03-20 21:01:06.188051 |
description | list all IPs that are pingable |
homepage | |
repository | https://github.com/manorajesh/lsip |
max_upload_size | |
id | 801941 |
size | 19,266 |
ls
but for IPsA simple Rust program that lists all the IPs in a certain subnet (default: 192.168.1.0/24).
A host is either up
or down
with the IPs that are up
displaying the duration to get a reply.
A host is determined to be up
if it has a duration or time
attribute in the stdout
of the
ping
command.
cargo install lsip
Change the ip_range
variable's wildcard (i.e. *
) for a certain subnet and ip as well.
Then, run the command.
I made this as one of my first Rust projects. I came back to it quite a bit later and improved it.