Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Nmap oprions |
|---|---|
| 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
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Hacked again???, Ansgar -59cobalt- Wiechers |
|---|---|
| Next by Date: | Re: Nmap oprions, Jacob Bresciani |
| Previous by Thread: | RE: Nmap oprions, Steve Hillier |
| Next by Thread: | RE: Nmap oprions, Gaddis, Jeremy L. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |