The Computer Oracle

How do I know if a remote machine is using Windows or Linux?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping

--

Chapters
00:00 How Do I Know If A Remote Machine Is Using Windows Or Linux?
00:24 Answer 1 Score 1
00:35 Accepted Answer Score 19
00:50 Answer 3 Score 1
01:31 Answer 4 Score 12
01:48 Thank you

--

Full question
https://superuser.com/questions/393614/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #linux #networking #protocol

#avk47



ACCEPTED ANSWER

Score 19


It isn't definitive but nmap will do this with the command nmap -O -v (see docs for more details) If you're running windows or want a gui, look at zenmap




ANSWER 2

Score 12


If you're on an IPv4 network, just use ping. If the response has a TTL of 128, the target is probably running Windows. If the TTL is 64, the target is probably running some variant of Unix.




ANSWER 3

Score 1


One way to go is to use NMap. From the response, it can guess the remote OS.




ANSWER 4

Score 1


Package: xprobe 'OR' xprobe2
Description: Remote OS identification Xprobe2 allows you to determine what operating system is running on a remote host. It sends several packets to a host and analyses the returned answers. Xprobe2's functionality is comparable to the OS fingerprinting feature in nmap.

Example:
$ sudo apt-get install xprobe
$ sudo xprobe2 -T21-23,80,53,110 ###.###.###.###

Reference:
http://www.sys-security.com/html/projects/X.html
http://sourceforge.net/projects/xprobe/