O'Reilly logo

Mastering the Nmap Scripting Engine by Paulino Calderón Pale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The weakness of the grepable format

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required