1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

Remove bin.lua calls from some scripts and libraries

This commit is contained in:
dmiller
2018-08-29 03:06:40 +00:00
parent dc996da218
commit 0d18bcdbc2
17 changed files with 65 additions and 67 deletions

View File

@@ -4,10 +4,10 @@
-- @author Patrik Karlsson <patrik@cqure.net>
local base64 = require "base64"
local bin = require "bin"
local match = require "match"
local nmap = require "nmap"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
local openssl = stdnse.silent_require "openssl"
_ENV = stdnse.module("rsync", stdnse.seeall)
@@ -157,7 +157,7 @@ Helper = {
return false, data
end
local pos, len = bin.unpack("<S", data)
local len = string.unpack("<I2", data)
status, data = self.socket:receive_buf(match.numbytes(len), false)
if ( not(status) ) then
return false, data