Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Re: Top ports and -p switch extension patchset (fix for list and ping scans)

Re: Top ports and -p switch extension patchset (fix for list and ping scans)

From: David Fifield <david_at_bamsoftware.com>
Date: Tue, 22 May 2007 23:26:10 -0600

> This collection of patches I am proposing greatly increases the capabilities
> of the -p switch,

I like the functionality of these patches. I found a small problem
having to do with list scan and ping scan:

        ~$ ~/soc/nmap-soc07/bin/nmap -sL localhost

        Starting Nmap 4.21ALPHA5 ( http://insecure.org ) at 2007-05-22 23:11 MDT
        No ports specified -- If you really don't want to scan any ports use ping scan...
        QUITTING!

        ~$ ~/soc/nmap-soc07/bin/nmap -sP localhost

        Starting Nmap 4.21ALPHA5 ( http://insecure.org ) at 2007-05-22 23:11 MDT
        No ports specified -- If you really don't want to scan any ports use ping scan...
        QUITTING!

The error message is printed in getpts, which before the patches wasn't
called for list or ping scans. Now that function is called by gettoppts
whenever an old-format services file is used. I committed a small change
to getpts that doesn't print the error message when the scan is not a TCP,
UDP, or protocol scan. It's in r4768 in /nmap-exp/soc07/nmap.

David

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Received on May 22 2007
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos