Chapter 2. Lua Fundamentals

Lua is a dynamically interpreted scripting language characterized as fast, flexible, portable, small, and yet very powerful. It has been chosen for these very reasons by a variety of well-recognized projects in many industries, including information security. Nmap Scripting Engine (NSE) uses Lua to allow users to easily extend the capabilities of Nmap by writing scripts that have access to the information collected by the tool.

Entire books can be written about Lua and its wonderful flexibility and amazing features. This chapter will merely introduce you to the basics of what you need to know to start working on your own NSE scripts. If you would like to dig deeper into Lua after reading this chapter, I highly recommend ...

Get Mastering the Nmap Scripting Engine now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.