Skip to content

A Go-based ping tool that allows you to specify a custom ICMP Identifier field in the ICMP header.

License

Notifications You must be signed in to change notification settings

yu-jimk/GoPingID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoPingID

Go License

A Go-based ping tool that lets you specify a custom ICMP Identifier.

Features

  • Sends ICMP Echo Requests
  • Allows manual specification of the ICMP Identifier (independent from PID)
  • Displays RTT in milliseconds

Installation

1. Install Go

Make sure Go is installed. You can download it from https://golang.org/dl/.

2. Clone the repository

git clone https://github.com/your-username/GoPingID.git
cd GoPingID

Usage

sudo go run main.go -a <IP_ADDRESS> [options]

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

Run directly

sudo go run main.go -a 8.8.8.8 -id 2 -n 3

Build executable

go build -o gopingid main.go
sudo ./gopingid -a 8.8.8.8 -id 2 -n 3

Example Output

PING 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=20ms

License

This is free software under the terms of the MIT License.

About

A Go-based ping tool that allows you to specify a custom ICMP Identifier field in the ICMP header.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages