mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 14:39:03 +00:00
Move string utility functions to stringaux.lua
This commit is contained in:
@@ -3,6 +3,7 @@ local math = require "math"
|
||||
local shortport = require "shortport"
|
||||
local stdnse = require "stdnse"
|
||||
local string = require "string"
|
||||
local stringaux = require "stringaux"
|
||||
local table = require "table"
|
||||
|
||||
description = [[
|
||||
@@ -51,7 +52,7 @@ action = function( host, port )
|
||||
return
|
||||
end
|
||||
local separator = string.sub(data, 1, 1)
|
||||
local fields = stdnse.strsplit(separator, data)
|
||||
local fields = stringaux.strsplit(separator, data)
|
||||
local info = {}
|
||||
local disks = math.floor((# fields) / 5)
|
||||
for i = 0, (disks - 1) do
|
||||
|
||||
Reference in New Issue
Block a user