mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 07:59:03 +00:00
Making extra functions in my HTTPpasswd.nse and HTTPtrace.nse scripts 'local'. I mark my C functions static, so I'll mark my Lua ones local
This commit is contained in:
@@ -21,7 +21,7 @@ categories = {"discovery"}
|
||||
require "shortport"
|
||||
require "stdnse"
|
||||
|
||||
truncate = function(tab)
|
||||
local truncate = function(tab)
|
||||
local str = ""
|
||||
str = str .. tab[1] .. "\n"
|
||||
str = str .. tab[2] .. "\n"
|
||||
@@ -31,7 +31,7 @@ truncate = function(tab)
|
||||
return str
|
||||
end
|
||||
|
||||
validate = function(response, original)
|
||||
local validate = function(response, original)
|
||||
local start, stop
|
||||
local body
|
||||
|
||||
|
||||
Reference in New Issue
Block a user