Created
February 1, 2013 17:22
-
-
Save bonsaiviking/4692704 to your computer and use it in GitHub Desktop.
Minimal test script for Nmap's NSE script testing. Can be run simply with `nmap --script=test.nse` and no further arguments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description = [[Minimal framework for testing NSE scripts. Modify as needed.]] | |
author = "Daniel Miller" | |
license = "Same as Nmap--See http://nmap.org/book/man-legal.html" | |
categories = {"testing"} | |
prerule = function() return true end | |
action = function() | |
return "TEST" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment