mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +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:
parent
c3b2e9af3f
commit
0aaa51980d
2 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue