This appendix includes an NSE script template that contains the required script fields scripts and the default licensing values:
description = [[ ]] --- -- @usage -- -- @output -- -- @args -- --- author = "" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {} --portrule = action = function(host, port) end
This template is available online in my GitHub repository, at https://github.com/cldrn/nmap-nse-scripts/blob/master/nse-script-template.nse.