mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 14:39:02 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user