[plug] Operating systems on the Internet
Ryan
ryan at slowest.net
Thu May 3 15:12:16 WST 2001
At 02:25 PM 5/3/01 +0800, you wrote:
>Can anyone give me a pointer to a breakdown of host computers on the
>Internet, by operating system?
------------------ begin stupid response ------------------
Sorry... I couldn't resist providing some crude Perl code i knocked up:
#!/usr/bin/perl
@range = map { unpack "N", pack "C4", split /\./ } $ARGV[0], $ARGV[1];
$hostcount = $range[1]-$range[0]+1;
print "scanning $hostcount hosts:\n";
$IP = join(".", unpack "C4", pack "N", $_+$range[0]);
$nmap = `nmap -O $IP | grep "guess:"`;
for (0..$hostcount-1) {
$IP = join (".", unpack "C4", pack "N", $_+$range[0]);
$nmap = `nmap -O $IP | grep guess:`;
print $_+1,"/$hostcount: $IP: $nmap\n";
}
Give it two IPs in ascending order as parameters and it will use nmap
to guess what OSes they are running.
impractical example:
slowest:/# scan 0.0.0.0 255.255.255.255
scanning 4294967296 hosts:
***** Please don't try this on any REAL internet hosts (it portscans) ***** :)
------------------ end stupid response ------------------
In summary - I don't know of any places that could provide such info.
Ryan
More information about the plug
mailing list