A lot of people love working straight from the command line, and they prefer the grepable output format even though it was deprecated many years ago. The main drawback of using the grepable format is that NSE does not have a way to provide output in this format. If you need to work with results from NSE, you need to stick to normal (-oN
), XML (-oX
), or even the script kiddie mode (-oS
), since it shows the same information as the normal output mode.
The normal output is as follows:
PORT STATE SERVICE 80/tcp open http |_http-title: Go ahead and ScanMe!
In grepable output (no NSE information), it looks as follows:
Host: 74.207.244.221 (scanme.nmap.org) Status: Up Host: 74.207.244.221 (scanme.nmap.org) Ports: 80/filtered/tcp//http///
Note
For a complete list of the fields returned in grepable mode, you can visit the official documentation at http://nmap.org/book/output-formats-grepable-output.html.
You can still use command lines when working in XML format if...