Home page logo

basics logo Security Basics mailing list archives

Re: Nmap oprions
From: Hecber Cordova <hecber () gmail com>
Date: Fri, 24 Jun 2005 16:14:05 -0400


        Try this:

        nmap -p21 <net> | grep -B 2 open

        Now, if you want only IP address, may be this can help:

        nmap -p21 <net> | grep -B 2 open | perl -ne 'if (/(\d+.\d+.\d+.\d+)/)
{ print "$1 \n" };'


        Hécber Córdova

El jue, 23-06-2005 a las 10:43 -0700, Juan B escribió:

I need to scan my big network for port 21 on many

I want that nmap will show me just the hosts which the
port found open. I know that I can do this with grep
but im not sure about the syntex.

can some one please help.



Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]