mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
Remove pre–Lua 5.2 imports from sample-script.nse.
This commit is contained in:
@@ -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.
|
-- * vuln: Scripts that check for specific, known vulnerabilities should be in the 'vuln' category.
|
||||||
categories = { "safe", "intrusive" } -- TODO: remove one or the other.
|
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
|
-- NSELib libraries should be included here.
|
||||||
--
|
|
||||||
-- 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:
|
|
||||||
local stdnse = require "stdnse"
|
local stdnse = require "stdnse"
|
||||||
--local shortport = require 'shortport' -- Uncomment if you want to use the 'shortport' rule.
|
--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.
|
--local nsedebug = require 'nsedebug' -- Uncomment while you are debuggint to access debug functions.
|
||||||
|
|||||||
Reference in New Issue
Block a user