May 2017
Intermediate to advanced
416 pages
21h 33m
English
Creating a library has a similar process to writing scripts. Always consider the scope of the variables that you are working with. Let's begin by creating an NSE library in Lua:
local math = require "math" _ENV = stdnse.module("mylibrary", stdnse.seeall)
function hello_word() return "Hello World!" end return _ENV;
Read now
Unlock full access