Security Basics mailing list archives
Re: Nmap oprions
From: Jacob Bresciani <jacob () bresciani ca>
Date: Fri, 24 Jun 2005 17:12:05 -0700
Slow but it works. you could make it more complicated but faster by pinging the machine first to see if it's up then if it's up nmapping it. or maybe simply telneting to it on port 21 and checking the reply. ########################################### #!/bin/bash PORT=21 SUBNET=192.168.0 IP=254 LASTIP=1 until [ $IP -lt $LASTIP ] do echo scanning $SUBNET.$IP ISOPEN=`nmap $SUBNET.$IP -p$PORT | grep open | awk '{print $2}'` if [ "$ISOPEN" == "open" ];then echo "$SUBNET.$IP is open" fi echo "$SUBNET.$IP is down" let IP-=1 done On Thu, 2005-06-23 at 10:43 -0700, Juan B wrote:
HI, I need to scan my big network for port 21 on many hosts. 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. thanks. J __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Current thread:
- Nmap oprions Juan B (Jun 24)
- Re: Nmap oprions Hecber Cordova (Jun 27)
- Re: Nmap oprions Daniel Miessler (Jun 27)
- Re: Nmap oprions Jacob Bresciani (Jun 27)
- 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)
- <Possible follow-ups>
- 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)
- Re: Nmap oprions Hecber Cordova (Jun 27)