Nmap, for those unfamiliar with it, is an open source port scanner that allows network browsing and obtaining information about the operating system from a remote computer.
It is available on Linux, Windows and Mac OS. If you still haven't read my article on how to use nmap, I advise you to go there now.
In this article, we will see a trick which consists in using the Nmap software to scan a network and then know the number of computers under Windows, Linux or Mac. The goal will be to get an idea of the operating systems that are used around you.
Here is the command which allows to launch this analysis. You must of course adapt the range of IP addresses to be scanned according to that of your local network:
The -O option is used to detect the operating system. The latter will then send TCP packets with abnormal sets of IP options. And by examining the responses received, he will be able to know the operating system used.
In my case, I got the following result:
The Nexus 5, The iPad and my personal machine being under Windows.