mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Removed nse_auxiliar. Updated Script Argument parsing. Fixed typos in
documentation. Improved MySQLinfo.nse. Nsock/dnet metatabels are now protected.
This commit is contained in:
parent
21a2e7aea6
commit
742ff67100
12 changed files with 125 additions and 336 deletions
|
|
@ -21,16 +21,7 @@ require 'bit'
|
|||
|
||||
-- Grabs NUL-terminated string
|
||||
local getstring = function(orig)
|
||||
local str = ""
|
||||
local index = 1
|
||||
|
||||
while orig:byte(index) ~= 0 do
|
||||
str = str .. string.char(orig:byte(index))
|
||||
|
||||
index = index + 1
|
||||
end
|
||||
|
||||
return str
|
||||
return orig:match("^([^%z]*)");
|
||||
end
|
||||
|
||||
-- Convert two bytes into a number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue