The objective of the XML structured output is to return data to users in structures that are easier to parse than the blob of text returned by the older scripts. The best part is that we can take advantage of this feature transparently in our scripts using the standard functions provided by the Nmap API and the stdnse
library. If you are considering sending your NSE script to get it included with official Nmap releases, I highly recommend making your scripts support the structured output.
Mastering the Nmap Scripting Engine
By :
Mastering the Nmap Scripting Engine
By:
Overview of this book
Table of Contents (23 chapters)
Mastering the Nmap Scripting Engine
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Introduction to the Nmap Scripting Engine
Lua Fundamentals
NSE Data Files
Exploring the Nmap Scripting Engine API and Libraries
Enhancing Version Detection
Developing Brute-force Password-auditing Scripts
Formatting the Script Output
Working with Network Sockets and Binary Data
Parallelism
Vulnerability Detection and Exploitation
Scan Phases
NSE Script Template
Script Categories
Nmap Options Mind Map
References
Index
Customer Reviews