From 01ce96f4643b97adf2020fc8d14b8851307bb620 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 10 Aug 2012 10:57:46 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20pre=E2=80=93Lua=205.2=20imports=20from?= =?UTF-8?q?=20sample-script.nse.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/sample-script.nse | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/sample-script.nse b/docs/sample-script.nse index 242d2f500..ab024ca3f 100644 --- a/docs/sample-script.nse +++ b/docs/sample-script.nse @@ -72,14 +72,7 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html" -- * vuln: Scripts that check for specific, known vulnerabilities should be in the 'vuln' category. categories = { "safe", "intrusive" } -- TODO: remove one or the other. --- NSELib libraries should be included here. Note that the declaration to import libraries changed after the upgrade to Lua 5.2 --- --- Format for Nmap versions <=6: --- require 'stdnse' ---require 'shortport' -- Uncomment if you want to use the 'shortport' rule. ---require 'nsedebug' -- Uncomment while you are debuggint to access debug functions. --- --- Format for Nmap versions >= 6.01: +-- NSELib libraries should be included here. local stdnse = require "stdnse" --local shortport = require 'shortport' -- Uncomment if you want to use the 'shortport' rule. --local nsedebug = require 'nsedebug' -- Uncomment while you are debuggint to access debug functions.