PDA

View Full Version : A geeky question



Mjolinor
2nd March, 2012, 01:42 PM
Can you tell which OS is installed on server 192.168.11.12 (please explain your answer)?

[user1@srv ~]$ ping -c 2 192.168.11.12

PING 192.168.31.12 (192.168.11.12) 56(84) bytes of data.

64 bytes from 192.168.11.12: icmp_seq=1 ttl=122 time=0.155 ms

64 bytes from 192.168.11.12: icmp_seq=2 ttl=122 time=0.143 ms



a. Windows;

b. Linux;

c. FreeBSD.

Shady
2nd March, 2012, 03:08 PM
freebsd, cos ive pinged windows and linux and i dont remember them looking like that :)

xdamdamx
5th March, 2012, 12:03 AM
windows returns 128 as TTL , so after few hops you get 122, the time is short so it's impossible to be a unix machine (TTL 255 )

Egren71
5th March, 2012, 01:20 AM
I don't think so. The machine you are pinging just replies, the way the reply is displayed is dependent upon the machine doing the ping.
All that the information you have posted is telling us is that most likely the machine you are pinging from is a Linux machine. Although that may not even be correct due to the number of Operating systems around.
I tried to ping the same address from a Windows XP machine, a Mac, and a Linux machine. Couldn't try FreeBSD or Vista or Win7 as i don't have a virtual machine of them at the moment.
The only one that gives a reply in the format you posted is the Linux machine. The Mac is close but not identical, and you can't 'ping -c 2 192.168.11.12' from XP.
So as i said no i don't think you can it will only tell you what your machine is.
But as i put in most of my answers i may be wrong and someone may know better than me.

Mjolinor
5th March, 2012, 10:07 AM
windows returns 128 as TTL , so after few hops you get 122, the time is short so it's impossible to be a unix machine (TTL 255 )

That is correct.


I don't think so. The machine you are pinging just replies, the way the reply is displayed is dependent upon the machine doing the ping.
All that the information you have posted is telling us is that most likely the machine you are pinging from is a Linux machine. Although that may not even be correct due to the number of Operating systems around.
I tried to ping the same address from a Windows XP machine, a Mac, and a Linux machine. Couldn't try FreeBSD or Vista or Win7 as i don't have a virtual machine of them at the moment.
The only one that gives a reply in the format you posted is the Linux machine. The Mac is close but not identical, and you can't 'ping -c 2 192.168.11.12' from XP.
So as i said no i don't think you can it will only tell you what your machine is.
But as i put in most of my answers i may be wrong and someone may know better than me.

Asking about the remote machine, not the local one. The one doing the pinging is Linux because of the format.

xdamdamx
5th March, 2012, 12:18 PM
Exactly, of course it's fully configurable, it's possible to change TTL in Windows Registry , as well as in Linux config files ;)

dctyper
5th March, 2012, 03:54 PM
use nmap to find out what it is running

dc

TheCoder
7th March, 2012, 12:21 AM
Can you tell which OS is installed on server 192.168.11.12 (please explain your answer)?

[user1@srv ~]$ ping -c 2 192.168.11.12

PING 192.168.31.12 (192.168.11.12) 56(84) bytes of data.

64 bytes from 192.168.11.12: icmp_seq=1 ttl=122 time=0.155 ms

64 bytes from 192.168.11.12: icmp_seq=2 ttl=122 time=0.143 ms



a. Windows;

b. Linux;

c. FreeBSD.

Apart from saying that its all on a non-publically-routed intranet in this case, there's not really much info you can derive about a server from a ping.

As the address is non-routed, nobody else but others within your network can derive further info.