NSE
From SecWiki
NSE is the Nmap's Scripting Engine. It uses the Lua programming language to extend Nmap to run scripts. These scripts can be used to perform a wide variety of tasks in an automatic fashion. For example, NSE scripts are commonly used to perform vulnerability analysis, service discovery and versioning, and service mapping.