Home page logo
/

basics logo Security Basics mailing list archives

RE: Nmap oprions
From: "JJ Knitis" <jj () dangercreative com>
Date: Mon, 27 Jun 2005 12:04:38 -0400

I sent this to Juan B directly, but maybe some others will find it useful.

        nmap -n -p21 192.168.0.0/16 | awk '/^Interesting ports on/ { host = substr( $4, 1,
index($4, ":") - 1 ) }; $2 == "open" { print host }'

strips trailing colon, gives a "cut-and-paste"able list

Note: this is not an elegant solution, it only works for single ports.

--
JJ Knitis
jj () dangercreative com


  By Date           By Thread  

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