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

Chapter 7. Formatting the Script Output

Formatting our Nmap Scripting Engine (NSE) scripts' output correctly is important because it provides greater flexibility to anyone working with them, specifically when reading or parsing results. This chapter covers the usage of the supported output mode and attempts to outline good practices regarding reporting data back to the users.

In version 6.20BETA1, a new feature was introduced to provide greater flexibility by allowing NSE scripts to return structured data in XML format. Before that, users needed to parse the results from a string stored in the file, while the new system allows users to navigate through a well-organized XML file. We will explore the different ways of producing this structured output. ...

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