1
0
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:
batrick
2008-05-31 02:19:24 +00:00
parent 21a2e7aea6
commit 742ff67100
12 changed files with 125 additions and 336 deletions

View File

@@ -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