mirror of
https://github.com/nmap/nmap.git
synced 2025-12-30 19:39:07 +00:00
Remove bin.lua calls from some scripts and libraries
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
local bin = require "bin"
|
||||
local io = require "io"
|
||||
local jdwp = require "jdwp"
|
||||
local stdnse = require "stdnse"
|
||||
@@ -80,7 +79,7 @@ action = function(host, port)
|
||||
return stdnse.format_output(false, result)
|
||||
end
|
||||
-- get the result string
|
||||
local _,_,stringID = bin.unpack(">CL",result)
|
||||
local stringID = string.unpack(">x I8",result)
|
||||
status,result = jdwp.readString(socket,0,stringID)
|
||||
-- parse results
|
||||
return stdnse.format_output(status,result)
|
||||
|
||||
Reference in New Issue
Block a user