Skip to content

This is a ping command with some recongnizing options.

License

Notifications You must be signed in to change notification settings

ArtikGz/ping-rawsockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping

This is a proyect for make a ping with analysis functionalities.

Requirements

This only tested on a linux os and you need to have installed the following dependencies:

  • Go compiler

Instalation

Clone this repository and execute the build.sh script

$ git clone https://github.com/AkaliRep/ping-rawsockets
$ ./build.sh

Usage

You just need to run the ping executable generated by build.sh script.
The os is calculated based on TTL, by default linux systems have 64TTL and windows systems 128TTL. This is not 100% accurate.

$ ./ping -h 192.168.0.1
Sending ping to: 192.168.0.1
---------------------------------
Time: 0.635ms	TTL: 64 (Probably OS: Linux)
Time: 0.514ms	TTL: 64 (Probably OS: Linux)
Time: 0.474ms	TTL: 64 (Probably OS: Linux)
Time: 0.489ms	TTL: 64 (Probably OS: Linux)
Total sent: 4	Total recived: 4	Total lost: 0	100.00% Recieved

You can see the help by typing -help (or anything that does not exist)

$ ./ping -help
Usage of ping:
  -c int
    	Number of packets you want to send (default 4)
  -h string
    	Host you want to ping (default "127.0.0.1")

Incoming Features

I'm working on the following features:

  • Port scan
  • DNS Resolve

About

This is a ping command with some recongnizing options.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published