Summary
In this chapter, you learned everything that you need to know about how NSE generates its output and how to structure it correctly within your scripts to take full advantage of the features available. We reviewed the available output formats in Nmap to cover their strengths and weaknesses. You should now be able to select the appropriate output format for any task you may face.
Finally, don't forget the importance of verbose and debugging messages in your scripts and keeping the information divided into the smallest chunks of information to make things easier for users who parse those results.
In the next chapter, we will see examples of raw packet crafting to get us prepared to handle all those wild communication protocols we see online ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access