Skip to content

Instantly share code, notes, and snippets.

@bonsaiviking
Created February 1, 2013 17:22
Show Gist options
  • Save bonsaiviking/4692704 to your computer and use it in GitHub Desktop.
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.
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