rustyping

A prettier lightweight ping utility written in Rust.

screenshot

Installation

You can either download the latest release from the releases page or compile it yourself. You will need cargo for the compilation. Currently, rustyping only support UNIX platforms (Linux and macOS). If you want it to be supported on other platforms, open an issue.

shell git clone https://github.com/k4yt3x/rustyping.git cd rustyping cargo build --release cargo install --path . strip $(which rp)

rustyping's binary will be installed to Cargo's binary directory (e.g., ~/.cargo/bin/rp). You can use the command rp to launch rustyping. Note that programs on Linus require the CAPNETRAW capability to be able to open raw sockets as an non-root user. The command below gives rustyping's binary this capability.

shell sudo setcap cap_net_raw=+eip $(which rp)

Unrestricted Mode

By default, non-root users can send pings at a minimal interval of 200ms or 0.2s. This is to prevent normal users from being able to cause ICMP floods. If you wish to disable this safety feature, you can compile rustyping with the unrestricted feature.

shell cargo build --release --features unrestricted

Usages

You can see the usages using the -h/--help switch.

```console USAGE: rp [OPTIONS]

FLAGS: -h, --help Prints help information -V, --version Prints version information

OPTIONS: -c, --count stop after replies [default: 0] -i, --interval seconds between sending each packet [default: 1.0] -W, --timeout time to wait for response [default: 2.0]

ARGS: dns name or ip address ```