Admin scripting -script to scan network share and open ports

Hi Ruby Friends:

I would like to scan my network for network shares and open ports. How do I
do this using ruby scripting? I have windows and unix pcs here.

Tips pls.

-botp

By using a tool designed to do the job you want:

mynet = '192.168.5.0/24'
result = `nmap -oX - #{mynet}`

···

On Mon, Oct 14, 2002 at 04:53:31PM +0900, "Peña, Botp" wrote:

I would like to scan my network for network shares and open ports. How do I
do this using ruby scripting?