May 2017
Intermediate to advanced
416 pages
21h 33m
English
The Nmap Scripting Engine uses the Lua C API to communicate with modules written in C/C++. These modules follow the protocol of a Lua_CFunction type (http://www.lua.org/manual/5.3/manual.html#lua_CFunction). This allows developers to integrate C/C++ libraries such as openssl. It is required to follow certain naming conventions and register the calls in Lua, but the process is straightforward.
In the previous example, we created a simple C library and went through the process of declaring and linking our new library in Unix-like distributions.
Read now
Unlock full access