A Go-based ping tool that lets you specify a custom ICMP Identifier.
- Sends ICMP Echo Requests
- Allows manual specification of the ICMP Identifier (independent from PID)
- Displays RTT in milliseconds
Make sure Go is installed. You can download it from https://golang.org/dl/.
git clone https://github.com/your-username/GoPingID.git
cd GoPingIDsudo go run main.go -a <IP_ADDRESS> [options]| option | Default | Description |
|---|---|---|
-a |
(required) | Destination IP address |
-n |
3 |
Number of Echo Requests to send |
-id |
PID & 0xffff |
ICMP Identifier (0–65535) |
-t |
3s |
Timeout duration |
sudo go run main.go -a 8.8.8.8 -id 2 -n 3go build -o gopingid main.go
sudo ./gopingid -a 8.8.8.8 -id 2 -n 3PING 8.8.8.8 (id=2):
8.8.8.8: icmp_seq=0 id=2 time=10ms
8.8.8.8: icmp_seq=1 id=2 time=18ms
8.8.8.8: icmp_seq=2 id=2 time=20msThis is free software under the terms of the MIT License.