I read from an article that ICMP Timestamp can be used to determine system time so I tried
hping3 192.168.1.x --icmp --icmp-ts -V. The output shows
len=46 ip=192.168.1.x ttl=xx id=xxxx tos=0 iplen=40 icmp_seq=x rtt=x.xms ICMP timestamp: Originate=27494134 Receive=27316024 Transmit=27316024 ICMP timestamp RTT tsrtt=xx
The problem is that I can't seem to make sense of the output...how do I derive the system time from the above results? Or am I doing something wrong here?
The timestamp of the remote host can be calculate from
- Converting 27316024 milliseconds to hours, you get 7.59 hours
- 7.59 hours translates to 07:35 Universal Time
- Change the time according to your local time zone
Timestamp is the number of milliseconds since midnight, universal time.
Originate is the time that your local machine crafts the request packet
Receive is the time that the remote machine receives the packet
Transmit is the time that the remote machine crafts the response packet