February 2015
Beginner to intermediate
244 pages
4h 37m
English
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)
endThis template is available online in my GitHub repository, at https://github.com/cldrn/nmap-nse-scripts/blob/master/nse-script-template.nse.
The Nmap distribution also includes a pretty complete template made by Ron Bowes. It can be downloaded from a previous working copy of the development repository, at https://svn.nmap.org/nmap/docs/sample-script.nse?p=30373
Read now
Unlock full access