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
Current thread:
- Re: Nmap oprions, (continued)
- Re: Nmap oprions Pablo (Jun 27)
- Re: Nmap oprions Eric Smith (Jun 27)
- Re: Nmap oprions Mark Owen (Jun 27)
- Re: Nmap oprions Aman Raheja (Jun 27)
- RE: Nmap oprions yeesan wong (Jun 27)
- RE: Nmap oprions Steve Hillier (Jun 27)
- Re: Nmap oprions Jacob Bresciani (Jun 27)
- RE: Nmap oprions Gaddis, Jeremy L. (Jun 27)
- RE: Nmap oprions Jeff Gercken (Jun 27)
- Re: Nmap oprions prashant . gawade (Jun 27)
- RE: Nmap oprions JJ Knitis (Jun 27)