NSE test script template

From SecWiki
Jump to: navigation, search

This template can be used to test code under NSE. Just put the code you want to test in the action function and output it as you require. Then run the script with nmap -sn --script ./test.nse -d


author = ""
categories = {}
description = "test"

prerule = function () return true end

action = function()