PDA

View Full Version : [ubuntu] Determine operating systems on lan



terbor
April 20th, 2010, 09:13 PM
How can I send out a broadcast from one device to the other machines on the LAN to reply with their operating system.

Thanks

doas777
April 20th, 2010, 09:19 PM
nmap, pOf, or xprobe are probably your best bet unless you want to write a rather complicated program to fingerprint based on the idiosyncrasies of each os's stack.

http://en.wikipedia.org/wiki/TCP/IP_stack_fingerprinting
http://sectools.org/os-detectors.html
http://nmap.org/book/osdetect.html

spiky001
April 20th, 2010, 09:20 PM
have you tried nmap or there is zenmap gui

terbor
April 20th, 2010, 09:45 PM
I am using nmap I just haven't found the right combination yet, I need to make a call to get the IPs and then I guess make another call to find the OS iterating through each IP?

What about using the hostname? I am using smbtree to find the devices with samba on it, maybe I can use the host name somehow?

spiky001
April 20th, 2010, 09:55 PM
what is it you are trying to do?

terbor
April 20th, 2010, 10:04 PM
The end goal is to get the operating system. I am using nmblookup right now, this works with the hostname to give me the IP, the problem with nmap is the time it takes to run a query. I need to present this data in a timely fashion to the end user.

spiky001
April 20th, 2010, 10:11 PM
have a look here at commands

http://www.workrobot.com/sysadmin/security/nmap-syntax.html

terbor
April 20th, 2010, 10:34 PM
Ok great, thanks for the help. I think I know how I am going to tackle this one.