Nmap Development mailing list archives
Output File Interpreter (grep-able)
From: "Livio Zanol Puppim" <livio.zanol.puppim () gmail com>
Date: Wed, 18 Oct 2006 20:58:21 -0200
Hi, I want to know where can I find a guide on how to interprete the Greppable format in shell script without defined options in nmap scan. Like this: I have built a simple frontend for nmap where users choose the method(s) of scanning, and the command it self is passed to a CGI page (based on shell script) where the scan is made. I need to be able to analyse the output from the scanning and return it in HTML format displaying all open ports from the scan separated by the hosts IPs. It can't be in PERL, and it can't use any of the "non native" shell commands like "*xmllist*" or something like that. It must use commands like: *grep*, *awk*, *cat*, *sed*, *if*, *for*, *eval*, etc... So let's take an example: Host: 192.168.0.3 () Ports: 80/open/tcp//http///, 443/open/tcp//https/// Ignored State: filtered Host: 192.168.0.66 () Ports: 139/open/tcp//netbios-ssn///, 445/open/tcp//microsoft-ds//Microsoft Windows XP microsoft-ds/ (etc..) -------------------------- How can I make a shell script that will grep the First Host(Line) return to me the ports (number, state, transport protocol, and service description) and move to the second line in a way that I can do this kind of stuff? -------------------------- Anyway, is there a guide on how to do it? Thanks, LĂvio Zanol _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Output File Interpreter (grep-able) Livio Zanol Puppim (Oct 18)
- Re: Output File Interpreter (grep-able) Luke Triantafyllidis (Oct 18)