Re: Nmap oprions

From: Daniel Miessler (daniel_at_dmiessler.com)
Date: 06/27/05

  • Next message: Steve Hillier: "RE: Nmap oprions"
    Date: Mon, 27 Jun 2005 14:04:15 -0400
    To: hecber@gmail.com
    
    
    

    On Jun 24, 2005, at 4:14 PM, Hecber Cordova wrote:

    >> 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.

    I like this method:

    nmap -n -p21 -oG output_file | cut -d" " -f2 | grep ^[0-9]

    This will print your Nmap output in grepable format, cut out the
    second field (which will be an IP due to the -n switch in the Nmap
    command), and then make sure the field starts with a number. That
    should work for you.

    Here's my own short primer that may be of some use to you:
    http://dmiessler.com/study/nmap

    Cheers,

    -- 
    Daniel R. Miessler
    M: daniel@dmiessler.com
    W: http://dmiessler.com
    G: 0x316BC712
    
    



  • Next message: Steve Hillier: "RE: Nmap oprions"

    Relevant Pages

    • Fw: Nmap 4.00 Released! (ARP scanning)
      ... I am pleased to announce that Nmap 4.00 is now available! ... It is now used automatically for any hosts that are ... the UDP probes will have their status changed to open. ... 'd' to increase the debugging level, 'p' to enable packet tracing, ...
      (Security-Basics)
    • Re: faster scans? (nmap)
      ... If all you're looking for is which hosts are up, ... only hosts that you know are there with Nmap. ... I believe that hping ... This list is provided by the SecurityFocus Security Intelligence Alert ...
      (Pen-Test)
    • RE: Is it "legal" to nmap offending hosts?
      ... Is it "legal" to nmap offending hosts? ... What would you achieve by running NMAP on their machine anyway? ... > much info in logs - internal IPs etc.). ...
      (Security-Basics)
    • RE: Discovering Live Hosts
      ... scanrand quick the segment. ... nmap port ping -PS for default port 80, ... nmap ping sweep -sP. ... This should give you a list of hosts on the target segment that are alive ...
      (Pen-Test)
    • Re: [?? Probable Spam] Automated Nmap Scans / Front End
      ... About thee time your scan takes, you can control nmap timaing if you are sure that your network link and those of the scanned hosts are reliable. ... Need to secure your web apps? ... Cenzic Hailstorm finds vulnerabilities fast. ...
      (Pen-Test)