Identifying operating system with ICMP/ping

ping host…

(try localhost)

Windows default TTL = 128
Linux default TTL = 64
Unix default TTL = 255

each hop (router) decreases the TTL by one. So if you get a 120 as TTL, its a windows machine, and your packet went through 8 routers.

http://www.dicas-l.com.br/dicas-l/20100509.php

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Identifying operating system with ICMP/ping

  1. Rafael Aroca says:

    To change this parameter:

    # echo 1 > /proc/sys/net/ipv4/ip_default_ttl

    # cat /proc/sys/net/ipv4/ip_default_ttl

    Source: http://www.Dicas-L.com.br/dicas-l/20100615.php

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s