ICMP

#ttl #hops

Internet control message protocol is used by devices to communicate with each other on the Internet.

It sends requests and messages between devices, which can be used to report errors or provide status information.

Another crucial part of ICMP for us is the Time-To-Live (TTL) field in the ICMP packet header that limits the packet's lifetime as it travels through the network.

However, it is also possible to guess the operating system based on the default TTL value used by the device. Each operating system typically has a default TTL value when sending packets.

Example:

  1. Observe the Returned TTL: Note the value from the ping response (e.g., ttl=54).
  2. Round Up to the Nearest Standard Default: Operating systems typically use specific default starting values. Round your observed value up to the nearest common default:
    • 64: Common for Linux, macOS, Android, and most Unix-like systems.
    • 128: Common for Windows systems.
    • 255: Common for network hardware (routers, switches) and some specialised systems.

Example Calculation: If you ping a server and get ttl=54:

Powered by Forestry.md