Clearification: Identifying Solaris Hosts

From: none none (timtowtdi@hotmail.com)
Date: Mon Jul 08 2002 - 16:14:53 EDT


Guys:

I want to clearify my problem:
I have about 25,000 Solaris machines out there on my network
I dont have an account on 99% of them.
99.9999% of these hosts do not have any type of trust relationships with any
other hosts (.rhosts, hosts.equiv etc).

Hence, I need a script to walk my networks which have altogether about
140,000 devices and identify the 25,000 or so Solaris machines via the
banners in telnet/ftp etc.

I cant use nmap b/c it has been known to crash badly written TCP/IP stacks
(HP printers, some early Cisco equipment etc.)
I cant use passive scanning tools (siphon) b/c it isnt accurate enough.

Hence is my problem description below...

----Original Message Follows----
From: "none none" <timtowtdi@hotmail.com>
To: sunmanagers@sunmanagers.org
Subject: Identifying Solaris Hosts
Date: Mon, 08 Jul 2002 14:22:20 -0400

Guys:

I have been asked to create a script/tool that walks various subnets and
identifies solaris/Unix machines. I cannot use tools such as nmap/siphon or
router arp caches due to security reasons/internal policies. Therefore, what
I am left with is creating a tool that will telnet/ftp/ssh/rpcinfo to a host
and then try to grep out 'linux/solaris/aix/hpux' out of the banners that
are presented to me by these hotsts. Here is in essence what I am trying to
script in:

telnet some_host |grep -i sunos

This of course wont work b/c the telnet process hangs untill its manually
terminated by a ^D. This:

echo '' |telnet some_host|grep -i sunos

wont work either b/c the telnet process terminates before it ever gets to
the SunOS X.X part. I know that I can use something like Expect to solve the
^D problem. However there is probably a more elegant and simple way to do
this. I am not a Expect or Perl expert and that is why I am trying to do
this using ksh. Any ideas would be greatly appreciated.

Thanks.

-Tim

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:34 EDT