This is a proyect for make a ping with analysis functionalities.
This only tested on a linux os and you need to have installed the following dependencies:
- Go compiler
Clone this repository and execute the build.sh script
$ git clone https://github.com/AkaliRep/ping-rawsockets
$ ./build.sh
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")
I'm working on the following features:
- Port scan
- DNS Resolve