port scan via bash script

Dave Korn dk@artimi.com
Thu Dec 2 10:17:00 GMT 2004


> -----Original Message-----
> From: cygwin-talk-owner On Behalf Of Michael
> Sent: 28 November 2004 04:36

> Does anyone know how to scan ports on a remote machine from a 
> command line.  I 
> have 4 ports I want to scan and check for a responce via 
> command line.  
> Thanks.  Mike.
> 

  You can use "nc -z" and check the exit status to determine if the ports
are listening or not.  Or by redirecting the input and output to it and
using the various timeout options you could probably get it to grab banners.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....
 




More information about the Cygwin-talk mailing list