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

Data types

Lua has the following basic data types:

  • number: This stores integer and double-float numbers
  • string: This is the sequence of bytes
  • boolean: This stores false and true values
  • table: This stores associative arrays that can be used to represent multiple data structures
  • function: This is an object of a function
  • nil: This indicates that a data type or variable lacks a value
  • userdata: This exposes the values of C objects (or other non-Lua objects)
  • thread: This is an independent thread of execution

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